equal
deleted
inserted
replaced
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 {}"); |