equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 * @test |
25 * @test |
26 * @bug 8064794 |
26 * @bug 8064794 |
27 * @summary The negative test against cyclic dependencies. |
27 * @summary The negative test against cyclic dependencies. |
28 * @library /tools/lib |
28 * @library /tools/lib |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * @modules jdk.compiler/com.sun.tools.javac.api |
30 * jdk.compiler/com.sun.tools.javac.file |
|
31 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.compiler/com.sun.tools.javac.main |
32 * jdk.jdeps/com.sun.tools.javap |
31 * @build toolbox.ToolBox NegativeCyclicDependencyTest |
33 * @build ToolBox NegativeCyclicDependencyTest |
|
34 * @run main NegativeCyclicDependencyTest |
32 * @run main NegativeCyclicDependencyTest |
35 */ |
33 */ |
36 |
34 |
37 import javax.tools.JavaCompiler; |
35 import javax.tools.JavaCompiler; |
38 import javax.tools.ToolProvider; |
36 import javax.tools.ToolProvider; |
39 import java.io.StringWriter; |
37 import java.io.StringWriter; |
40 import java.util.ArrayList; |
38 import java.util.ArrayList; |
41 import java.util.Arrays; |
39 import java.util.Arrays; |
42 import java.util.List; |
40 import java.util.List; |
|
41 |
|
42 import toolbox.ToolBox; |
43 |
43 |
44 /** |
44 /** |
45 * The test generates the following code: |
45 * The test generates the following code: |
46 * |
46 * |
47 * package pkg; |
47 * package pkg; |