langtools/test/tools/doclint/anchorTests/p/Test.java
author katleman
Tue, 21 Jan 2014 18:17:23 -0800
changeset 22365 895bfde469d4
parent 20254 8246fe4d6638
child 30730 d3ce7619db2c
permissions -rw-r--r--
Added tag jdk9-b01 for changeset ae2d94255f32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20254
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     1
/* @test /nodynamiccopyright/
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     2
 * @bug 8025246
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     3
 * @summary doclint is showing error on anchor already defined when it's not
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     4
 * @library ../..
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     5
 * @build DocLintTester
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     6
 * @run main DocLintTester -ref Test.out Test.java
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     7
 * @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     8
 */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
     9
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    10
package p;
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    11
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    12
/**
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    13
 * <a name="dupTest">dupTest</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    14
 * <a name="dupTest">dupTest again</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    15
 *
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    16
 * <a name="dupTestField">dupTestField</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    17
 * <a name="dupTestMethod">dupTestMethod</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    18
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    19
 * <a name="okClass">okClass</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    20
 * <a name="okField">okField</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    21
 * <a name="okMethod">okMethod</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    22
 */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    23
public class Test {
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    24
    /** <a name="dupTestField">dupTestField again</a> */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    25
    public int f;
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    26
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    27
    /** <a name="dupTestMethod">dupTestMethod again</a> */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    28
    public void m() { }
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    29
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    30
    /**
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    31
     * <a name="dupNested">dupNested</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    32
     * <a name="dupNested">dupNested again</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    33
     * <a name="dupNestedField">dupNestedField</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    34
     * <a name="dupNestedMethod">dupNestedMethod</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    35
     *
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    36
     * <a name="okClass">okClass again</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    37
     */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    38
    public class Nested {
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    39
        /**
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    40
         * <a name="dupNestedField">dupNestedField</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    41
         *
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    42
         * <a name="okField">okField again</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    43
         */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    44
        public int f;
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    45
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    46
        /**
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    47
         * <a name="dupNestedMethod">dupNestedMethod</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    48
         *
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    49
         * <a name="okMethod">okMethod again</a>
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    50
         */
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    51
        public void m() { }
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    52
    }
8246fe4d6638 8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff changeset
    53
}