test/tools/doclint/anchorTests/p/Test.java

Tue, 24 Sep 2013 10:51:28 -0700

author
jjg
date
Tue, 24 Sep 2013 10:51:28 -0700
changeset 2052
503338f16d2b
parent 0
959103a6100f
permissions
-rw-r--r--

8025246: [doclint] doclint is showing error on anchor already defined when it's not
Reviewed-by: bpatel

     1 /* @test /nodynamiccopyright/
     2  * @bug 8025246
     3  * @summary doclint is showing error on anchor already defined when it's not
     4  * @library ../..
     5  * @build DocLintTester
     6  * @run main DocLintTester -ref Test.out Test.java
     7  * @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
     8  */
    10 package p;
    12 /**
    13  * <a name="dupTest">dupTest</a>
    14  * <a name="dupTest">dupTest again</a>
    15  *
    16  * <a name="dupTestField">dupTestField</a>
    17  * <a name="dupTestMethod">dupTestMethod</a>
    19  * <a name="okClass">okClass</a>
    20  * <a name="okField">okField</a>
    21  * <a name="okMethod">okMethod</a>
    22  */
    23 public class Test {
    24     /** <a name="dupTestField">dupTestField again</a> */
    25     public int f;
    27     /** <a name="dupTestMethod">dupTestMethod again</a> */
    28     public void m() { }
    30     /**
    31      * <a name="dupNested">dupNested</a>
    32      * <a name="dupNested">dupNested again</a>
    33      * <a name="dupNestedField">dupNestedField</a>
    34      * <a name="dupNestedMethod">dupNestedMethod</a>
    35      *
    36      * <a name="okClass">okClass again</a>
    37      */
    38     public class Nested {
    39         /**
    40          * <a name="dupNestedField">dupNestedField</a>
    41          *
    42          * <a name="okField">okField again</a>
    43          */
    44         public int f;
    46         /**
    47          * <a name="dupNestedMethod">dupNestedMethod</a>
    48          *
    49          * <a name="okMethod">okMethod again</a>
    50          */
    51         public void m() { }
    52     }
    53 }

mercurial