< prev index next >

test/langtools/tools/javac/launcher/SourceLauncherTest.java

Print this page

        

*** 290,300 **** Path file = base.resolve("HelloWorld.java"); testError(file, file + ":1: error: illegal character: '#'\n" + "#!/usr/bin/java --source " + thisVersion + "\n" + "^\n" + ! file + ":1: error: class, interface, or enum expected\n" + "#!/usr/bin/java --source " + thisVersion + "\n" + " ^\n" + "2 errors\n", "error: compilation failed"); } --- 290,300 ---- Path file = base.resolve("HelloWorld.java"); testError(file, file + ":1: error: illegal character: '#'\n" + "#!/usr/bin/java --source " + thisVersion + "\n" + "^\n" + ! file + ":1: error: class, interface, enum, or record expected\n" + "#!/usr/bin/java --source " + thisVersion + "\n" + " ^\n" + "2 errors\n", "error: compilation failed"); }
*** 496,506 **** Path file = base.resolve("HelloWorld.java"); testError(file, file + ":1: error: illegal character: '#'\n" + "#/usr/bin/java --source " + thisVersion + "\n" + "^\n" + ! file + ":1: error: class, interface, or enum expected\n" + "#/usr/bin/java --source " + thisVersion + "\n" + " ^\n" + "2 errors\n", "error: compilation failed"); } --- 496,506 ---- Path file = base.resolve("HelloWorld.java"); testError(file, file + ":1: error: illegal character: '#'\n" + "#/usr/bin/java --source " + thisVersion + "\n" + "^\n" + ! file + ":1: error: class, interface, enum, or record expected\n" + "#/usr/bin/java --source " + thisVersion + "\n" + " ^\n" + "2 errors\n", "error: compilation failed"); }
< prev index next >