langtools/test/tools/javac/modules/NPEEmptyFileTest.java
changeset 37758 3ecf9b414e05
parent 36778 e04318f39f92
child 40308 274367a99f98
equal deleted inserted replaced
37757:f38cc75b6fa0 37758:3ecf9b414e05
    43     public static void main(String... args) throws Exception {
    43     public static void main(String... args) throws Exception {
    44         new NPEEmptyFileTest().runTests();
    44         new NPEEmptyFileTest().runTests();
    45     }
    45     }
    46 
    46 
    47     @Test
    47     @Test
    48     void compileEmptyFile(Path base) throws Exception {
    48     public void compileEmptyFile(Path base) throws Exception {
    49         Path modules = base.resolve("modules");
    49         Path modules = base.resolve("modules");
    50         Files.createDirectories(modules);
    50         Files.createDirectories(modules);
    51         Path emptyJavaFile = base.resolve("Test.java");
    51         Path emptyJavaFile = base.resolve("Test.java");
    52         tb.writeFile(emptyJavaFile, "");
    52         tb.writeFile(emptyJavaFile, "");
    53         new JavacTask(tb, Task.Mode.EXEC)
    53         new JavacTask(tb, Task.Mode.EXEC)