langtools/test/tools/javac/modules/ModuleInfoTreeAccess.java
changeset 37758 3ecf9b414e05
parent 36779 9a030c4d2591
child 42407 f3702cff2933
equal deleted inserted replaced
37757:f38cc75b6fa0 37758:3ecf9b414e05
    59             throw new AssertionError(prefix + ": unexpected null! ");
    59             throw new AssertionError(prefix + ": unexpected null! ");
    60         }
    60         }
    61     }
    61     }
    62 
    62 
    63     @Test
    63     @Test
    64     void testTreePathForModuleDecl(Path base) throws Exception {
    64     public void testTreePathForModuleDecl(Path base) throws Exception {
    65 
    65 
    66         JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
    66         JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
    67         try (StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null)) {
    67         try (StandardJavaFileManager fm = compiler.getStandardFileManager(null, null, null)) {
    68             Path src = base.resolve("src");
    68             Path src = base.resolve("src");
    69             tb.writeJavaFiles(src, "/** Test module */ module m1 {}");
    69             tb.writeJavaFiles(src, "/** Test module */ module m1 {}");