jdk-24/test/langtools/tools/doclint/anchorTests/p/package-info.java
Yoshiki Sato 28e1f4d9ee 8247957: remove doclint support for HTML 4
8257204: Remove usage of -Xhtmlversion option from javac
8256313: JavaCompilation.gmk needs to be updated not to use --doclint-format html5 option
8258460: Remove --doclint-format option from javac
8256312: Valid anchor 'id' value not allowed

Reviewed-by: jjg, ihse
2021-01-06 22:48:00 +00:00

19 lines
550 B
Java

/* @test /nodynamiccopyright/
* @bug 8025246 8247957
* @summary doclint is showing error on anchor already defined when it's not
* @library ../..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref package-info.out package-info.java
* @compile/fail/ref=package-info.javac.out -XDrawDiagnostics -Werror -Xdoclint:all package-info.java
*/
/**
* <a id=here>here</a>
* <a id=here>here again</a>
* <a name=name>obsolete anchor</a>
* <a name=name>obsolete anchor again</a>
*/
package p;