8207055: Make javac -help output for -source and -target more informative

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2018-07-11 16:12:18 -07:00
parent c7a1b6431d
commit e18f343141
6 changed files with 47 additions and 20 deletions

View file

@ -264,7 +264,7 @@ public class AddLimitMods extends ModuleTestBase {
.writeAll()
.getOutputLines(Task.OutputKind.DIRECT);
if (!actual.contains("- compiler.err.option.not.allowed.with.target: --add-modules, 1.8")) {
if (!actual.contains("- compiler.err.option.not.allowed.with.target: --add-modules, 8")) {
throw new IllegalStateException("incorrect errors; actual=" + actual);
}