--- a/langtools/test/tools/javac/fatalErrors/NoJavaLangTest.java Wed Nov 23 16:16:36 2016 +0000
+++ b/langtools/test/tools/javac/fatalErrors/NoJavaLangTest.java Thu Dec 01 09:02:42 2016 +0000
@@ -83,10 +83,13 @@
// need to ensure there is an empty java.base to avoid different error message
Files.createDirectories(Paths.get("modules/java.base"));
new JavacTask(tb)
- .sources("module java.base { }")
+ .sources("module java.base { }",
+ "package java.lang; public class Object {}")
.outdir("modules/java.base")
.run();
+ Files.delete(Paths.get("modules", "java.base", "java", "lang", "Object.class"));
+
// ideally we'd have a better message for this case
String[] mpOpts = { "--system", "none", "--module-path", "modules" };
test(mpOpts, compilerErrorMessage);