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

changeset 0
959103a6100f
equal deleted inserted replaced
-1:000000000000 0:959103a6100f
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 */
9
10 package p;
11
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>
18
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;
26
27 /** <a name="dupTestMethod">dupTestMethod again</a> */
28 public void m() { }
29
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;
45
46 /**
47 * <a name="dupNestedMethod">dupNestedMethod</a>
48 *
49 * <a name="okMethod">okMethod again</a>
50 */
51 public void m() { }
52 }
53 }

mercurial