langtools/test/tools/javac/importscope/ImportMembersTest.java
changeset 36778 e04318f39f92
parent 36526 3b41f1c69604
equal deleted inserted replaced
36777:28d33fb9097f 36778:e04318f39f92
    25  * @test
    25  * @test
    26  * @bug 8065360
    26  * @bug 8065360
    27  * @summary The test checks possibility of class members to be imported.
    27  * @summary The test checks possibility of class members to be imported.
    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  *          jdk.jdeps/com.sun.tools.javap
    33  * @build ToolBox ImportMembersTest
    32  * @build toolbox.ToolBox ImportMembersTest
    34  * @run main ImportMembersTest
    33  * @run main ImportMembersTest
    35  */
    34  */
    36 
    35 
    37 import javax.tools.JavaCompiler;
    36 import javax.tools.JavaCompiler;
    38 import javax.tools.ToolProvider;
    37 import javax.tools.ToolProvider;
    39 import java.io.StringWriter;
    38 import java.io.StringWriter;
    40 import java.util.ArrayList;
    39 import java.util.ArrayList;
    41 import java.util.Arrays;
    40 import java.util.Arrays;
    42 import java.util.List;
    41 import java.util.List;
       
    42 
       
    43 import toolbox.ToolBox;
    43 
    44 
    44 /**
    45 /**
    45  * The test checks that members of a class, an enum, an interface or annotation
    46  * The test checks that members of a class, an enum, an interface or annotation
    46  * can be imported with help of a static import or an import statement.
    47  * can be imported with help of a static import or an import statement.
    47  * The tests generates a code, compiles it and checks whether it can be compiled
    48  * The tests generates a code, compiles it and checks whether it can be compiled