langtools/test/tools/javac/api/6411310/T6411310.java
changeset 3995 73af8b6fb8bc
parent 10 06bc494ca11e
child 5520 86e4b9a9da40
equal deleted inserted replaced
3994:7df1ecd5eadb 3995:73af8b6fb8bc
    35 import javax.tools.JavaFileObject;
    35 import javax.tools.JavaFileObject;
    36 import static javax.tools.StandardLocation.PLATFORM_CLASS_PATH;
    36 import static javax.tools.StandardLocation.PLATFORM_CLASS_PATH;
    37 import static javax.tools.StandardLocation.CLASS_PATH;
    37 import static javax.tools.StandardLocation.CLASS_PATH;
    38 import static javax.tools.JavaFileObject.Kind.CLASS;
    38 import static javax.tools.JavaFileObject.Kind.CLASS;
    39 
    39 
    40 // Limited test while we wait for 6419926
    40 // Limited test while we wait for 6419926: 6419926 is now closed
    41 
    41 
    42 public class T6411310 extends ToolTester {
    42 public class T6411310 extends ToolTester {
    43 
    43 
    44     void test(String... args) throws IOException {
    44     void test(String... args) throws IOException {
    45         JavaFileObject file = fm.getJavaFileForInput(PLATFORM_CLASS_PATH,
    45         JavaFileObject file = fm.getJavaFileForInput(PLATFORM_CLASS_PATH,
    46                                                      "java.lang.Object",
    46                                                      "java.lang.Object",
    47                                                      CLASS);
    47                                                      CLASS);
    48         if (!file.getName().equals("Object.class"))
    48         String fileName = file.getName();
       
    49         if (!fileName.matches(".*java/lang/Object.class\\)?")) {
       
    50             System.err.println(fileName);
    49             throw new AssertionError(file);
    51             throw new AssertionError(file);
       
    52         }
    50     }
    53     }
    51 
    54 
    52     public static void main(String... args) throws IOException {
    55     public static void main(String... args) throws IOException {
    53         new T6411310().test(args);
    56         new T6411310().test(args);
    54     }
    57     }