test/langtools/tools/javac/modules/AddLimitMods.java
changeset 51040 e0bce2635ec5
parent 49822 53aae0c219e6
equal deleted inserted replaced
51039:ae39e5a991ed 51040:e0bce2635ec5
   262                    .files(findJavaFiles(cpSrc))
   262                    .files(findJavaFiles(cpSrc))
   263                    .run(Task.Expect.FAIL)
   263                    .run(Task.Expect.FAIL)
   264                    .writeAll()
   264                    .writeAll()
   265                    .getOutputLines(Task.OutputKind.DIRECT);
   265                    .getOutputLines(Task.OutputKind.DIRECT);
   266 
   266 
   267         if (!actual.contains("- compiler.err.option.not.allowed.with.target: --add-modules, 1.8")) {
   267         if (!actual.contains("- compiler.err.option.not.allowed.with.target: --add-modules, 8")) {
   268             throw new IllegalStateException("incorrect errors; actual=" + actual);
   268             throw new IllegalStateException("incorrect errors; actual=" + actual);
   269         }
   269         }
   270 
   270 
   271         tb.writeJavaFiles(cpSrc, "module m1x {}");
   271         tb.writeJavaFiles(cpSrc, "module m1x {}");
   272 
   272