mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8196433: use the new error diagnostic approach at javac.Main
Reviewed-by: jjg
This commit is contained in:
parent
c215aa5889
commit
03a10ec7b2
31 changed files with 638 additions and 441 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -96,7 +96,7 @@ public class BadOptionsTest extends TestRunner {
|
|||
.run(Task.Expect.FAIL)
|
||||
.writeAll();
|
||||
checkFound(result.getOutput(Task.OutputKind.DIRECT),
|
||||
"javadoc: error - no value for --add-modules option");
|
||||
"javadoc: error - error: no value for --add-modules option");
|
||||
checkNotFound(result, "Exception", "at jdk.javadoc/");
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ public class BadOptionsTest extends TestRunner {
|
|||
.run(Task.Expect.FAIL)
|
||||
.writeAll();
|
||||
checkFound(result.getOutput(Task.OutputKind.DIRECT),
|
||||
"javadoc: error - no value for --add-exports option");
|
||||
"javadoc: error - error: no value for --add-exports option");
|
||||
checkNotFound(result, "Exception", "at jdk.javadoc/");
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ public class BadOptionsTest extends TestRunner {
|
|||
.run(Task.Expect.FAIL)
|
||||
.writeAll();
|
||||
checkFound(result.getOutput(Task.OutputKind.DIRECT),
|
||||
"javadoc: error - bad value for --add-exports option");
|
||||
"javadoc: error - error: bad value for --add-exports option: 'm/p'");
|
||||
checkNotFound(result, "Exception", "at jdk.javadoc/");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue