test/tools/doclint/AnchorTest2.java

Mon, 25 Nov 2013 17:42:28 -0800

author
jjg
date
Mon, 25 Nov 2013 17:42:28 -0800
changeset 2204
a78f51d6bd5e
parent 0
959103a6100f
permissions
-rw-r--r--

8028318: [doclint] doclint will reject existing user-written doc comments using custom tags that follow the recommended rules
Reviewed-by: darcy

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8020313
     4  * @summary doclint doesn't reset HTML anchors correctly
     5  * @build DocLintTester
     6  * @run main DocLintTester -ref AnchorTest2.out AnchorTest2.java AnchorTest2a.java
     7  * @run main DocLintTester -ref AnchorTest2.out AnchorTest2a.java AnchorTest2.java
     8  */
    10 /** */
    11 public class AnchorTest2 {
    12     /** <a name="AnchorTest2"> </a> */
    13     public void a_name_AnchorTest2() { }
    15     /** <a name="AnchorTest2"> </a> */
    16     public void a_name_AnchorTest2_already_defined() { }
    18     /** <a name="AnchorTest2a"> </a> */
    19     public void a_name_AnchorTest2a_defined_in_other_file() { }
    20 }

mercurial