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