42 lines
1.8 KiB
Diff
42 lines
1.8 KiB
Diff
--- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/BaseConfiguration.java
|
|
+++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/BaseConfiguration.java
|
|
@@ -767,7 +767,7 @@ public abstract class BaseConfiguration {
|
|
}
|
|
} else {
|
|
// no -Xmsgs options of any kind, use default
|
|
- doclintOpts.add(DocLint.XMSGS_OPTION);
|
|
+ return;
|
|
}
|
|
|
|
if (!customTagNames.isEmpty()) {
|
|
--- a/test/langtools/jdk/javadoc/tool/doclint/DocLintTest.java
|
|
+++ b/test/langtools/jdk/javadoc/tool/doclint/DocLintTest.java
|
|
@@ -155,12 +155,12 @@ public class DocLintTest {
|
|
files = List.of(new TestJFO("Test.java", code));
|
|
|
|
test(List.of(htmlVersion),
|
|
- Main.Result.ERROR,
|
|
- EnumSet.of(Message.DL_ERR9A, Message.DL_WRN12A));
|
|
+ Main.Result.OK,
|
|
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN13));
|
|
|
|
test(List.of(htmlVersion, rawDiags),
|
|
- Main.Result.ERROR,
|
|
- EnumSet.of(Message.DL_ERR9, Message.DL_WRN12));
|
|
+ Main.Result.OK,
|
|
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN13));
|
|
|
|
// test(List.of("-Xdoclint:none"),
|
|
// Main.Result.OK,
|
|
@@ -183,8 +183,8 @@ public class DocLintTest {
|
|
EnumSet.of(Message.DL_WRN12));
|
|
|
|
test(List.of(htmlVersion, rawDiags, "-private"),
|
|
- Main.Result.ERROR,
|
|
- EnumSet.of(Message.DL_ERR6, Message.DL_ERR9, Message.DL_WRN12));
|
|
+ Main.Result.OK,
|
|
+ EnumSet.of(Message.JD_WRN10, Message.JD_WRN13));
|
|
|
|
test(List.of(htmlVersion, rawDiags, "-Xdoclint:missing,syntax", "-private"),
|
|
Main.Result.ERROR,
|