langtools/test/tools/javac/fatalErrors/NoJavaLangTest.java
changeset 40308 274367a99f98
parent 36778 e04318f39f92
child 42407 f3702cff2933
equal deleted inserted replaced
40306:1a0fcaf3f2ed 40308:274367a99f98
    86                 .sources("module java.base { }")
    86                 .sources("module java.base { }")
    87                 .outdir("modules/java.base")
    87                 .outdir("modules/java.base")
    88                 .run();
    88                 .run();
    89 
    89 
    90         // ideally we'd have a better message for this case
    90         // ideally we'd have a better message for this case
    91         String[] mpOpts = { "-system", "none", "-modulepath", "modules" };
    91         String[] mpOpts = { "--system", "none", "--module-path", "modules" };
    92         test(mpOpts, compilerErrorMessage);
    92         test(mpOpts, compilerErrorMessage);
    93     }
    93     }
    94 
    94 
    95     private void test(String[] options, String expect) {
    95     private void test(String[] options, String expect) {
    96         System.err.println("Testing " + java.util.Arrays.toString(options));
    96         System.err.println("Testing " + java.util.Arrays.toString(options));