jdk-24/test/langtools/tools/doclint/packageTests/bad/Test.java
Jonathan Gibbons ae45592d33 8272374: doclint should report missing "body" comments
Reviewed-by: kcr, hannesw
2021-08-16 20:48:25 +00:00

20 lines
457 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8020664 8021215
* @summary doclint gives incorrect warnings on normal package statements
* @library ../..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref Test.out Test.java
* @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
*/
/** Unexpected comment */
package bad;
/** . */
class Test {
/** . */ Test() { }
}