8007610: javadoc doclint does not work with -private

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2013-02-08 17:35:16 -08:00
parent 59318f1b2e
commit b30e5c6313
3 changed files with 11 additions and 5 deletions

View file

@ -23,7 +23,7 @@
/*
* @test
* @bug 8004834
* @bug 8004834 8007610
* @summary Add doclint support into javadoc
*/
@ -157,6 +157,10 @@ public class DocLintTest {
Main.Result.OK,
EnumSet.of(Message.DL_WRN12));
test(Arrays.asList(rawDiags, "-private"),
Main.Result.ERROR,
EnumSet.of(Message.DL_ERR6, Message.DL_ERR9, Message.DL_WRN12));
test(Arrays.asList(rawDiags, "-Xdoclint:syntax", "-private"),
Main.Result.ERROR,
EnumSet.of(Message.DL_ERR6, Message.DL_WRN12));