jdk-24/test/langtools/tools/doclint/tidy/InvalidName.java
Jonathan Gibbons f765a7f513 8252712: move doclint to jdk.javadoc module
Reviewed-by: hannesw
2020-09-23 19:55:08 +00:00

20 lines
461 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8004832
* @summary Add new doclint package
* @library ..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref InvalidName.out InvalidName.java
*/
// tidy: Warning: <a> cannot copy name attribute to id
/**
* <a name="abc">valid</a>
* <a name="abc123">valid</a>
* <a name="a.1:2-3_4">valid</a>
* <a name="foo()">invalid</a>
*/
public class InvalidName { }