author | naoto |
Tue, 29 Mar 2016 17:06:33 -0700 | |
changeset 36739 | 145210aba850 |
parent 30730 | d3ce7619db2c |
permissions | -rw-r--r-- |
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 ../.. |
30730
d3ce7619db2c
8076543: Add @modules as needed to the langtools tests
akulyakh
parents:
20254
diff
changeset
|
5 |
* @modules jdk.compiler/com.sun.tools.doclint |
20254
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
6 |
* @build DocLintTester |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
7 |
* @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
|
8 |
* @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
|
9 |
*/ |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
10 |
|
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
11 |
package p; |
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 |
/** |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
14 |
* <a name="dupTest">dupTest</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
15 |
* <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
|
16 |
* |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
17 |
* <a name="dupTestField">dupTestField</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
18 |
* <a name="dupTestMethod">dupTestMethod</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
19 |
|
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
20 |
* <a name="okClass">okClass</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
21 |
* <a name="okField">okField</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
22 |
* <a name="okMethod">okMethod</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
23 |
*/ |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
24 |
public class Test { |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
25 |
/** <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
|
26 |
public int f; |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
27 |
|
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
28 |
/** <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
|
29 |
public void m() { } |
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 |
/** |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
32 |
* <a name="dupNested">dupNested</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
33 |
* <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
|
34 |
* <a name="dupNestedField">dupNestedField</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
35 |
* <a name="dupNestedMethod">dupNestedMethod</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
36 |
* |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
37 |
* <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
|
38 |
*/ |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
39 |
public class Nested { |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
40 |
/** |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
41 |
* <a name="dupNestedField">dupNestedField</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
42 |
* |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
43 |
* <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
|
44 |
*/ |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
45 |
public int f; |
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 |
/** |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
48 |
* <a name="dupNestedMethod">dupNestedMethod</a> |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
49 |
* |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
50 |
* <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
|
51 |
*/ |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
52 |
public void m() { } |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
53 |
} |
8246fe4d6638
8025246: [doclint] doclint is showing error on anchor already defined when it's not
jjg
parents:
diff
changeset
|
54 |
} |