author | jjg |
Wed, 21 Aug 2013 17:26:22 -0700 | |
changeset 19653 | e49999626675 |
parent 15035 | d03c311f44e6 |
child 21011 | cbd0e37fe4fb |
permissions | -rw-r--r-- |
15035
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
1 |
/* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
2 |
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
4 |
* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
8 |
* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
13 |
* accompanied this code). |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
14 |
* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
18 |
* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
21 |
* questions. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
22 |
*/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
23 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
24 |
/* |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
25 |
* @test |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
26 |
* @bug 8005092 |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
27 |
* @summary Test repeated annotations output. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
28 |
* @author bpatel |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
29 |
* @library ../lib/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
30 |
* @build JavadocTester TestRepeatedAnnotations |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
31 |
* @run main TestRepeatedAnnotations |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
32 |
*/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
33 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
34 |
public class TestRepeatedAnnotations extends JavadocTester { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
35 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
36 |
//Test information. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
37 |
private static final String BUG_ID = "8005092"; |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
38 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
39 |
//Javadoc arguments. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
40 |
private static final String[] ARGS = new String[] { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
41 |
"-d", BUG_ID, "-sourcepath", SRC_DIR, "pkg", "pkg1" |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
42 |
}; |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
43 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
44 |
//Input for string search tests. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
45 |
private static final String[][] TEST = { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
46 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
47 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
48 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
49 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
50 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
51 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
52 |
"<a href=\"../pkg/ContaineeRegDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
53 |
"title=\"annotation in pkg\">@ContaineeRegDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
54 |
"<a href=\"../pkg/ContaineeRegDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
55 |
"title=\"annotation in pkg\">@ContaineeRegDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
56 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
57 |
"<a href=\"../pkg/RegContainerDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
58 |
"title=\"annotation in pkg\">@RegContainerDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
59 |
"(<a href=\"../pkg/RegContainerDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
60 |
"<a href=\"../pkg/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
61 |
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
62 |
"<a href=\"../pkg/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
63 |
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
64 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
65 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
66 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
67 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
68 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
69 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
70 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
71 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
72 |
"<a href=\"../pkg/ContainerSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
73 |
"title=\"annotation in pkg\">@ContainerSynthDoc</a>(" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
74 |
"<a href=\"../pkg/ContainerSynthDoc.html#value()\">value</a>=" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
75 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
76 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
77 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
78 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
79 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
80 |
"<a href=\"../pkg/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
81 |
"title=\"annotation in pkg\">@ContaineeSynthDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
82 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
83 |
{BUG_ID + FS + "pkg" + FS + "D.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
84 |
"<a href=\"../pkg/RegDoc.html\" title=\"annotation in pkg\">@RegDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
85 |
"(<a href=\"../pkg/RegDoc.html#x()\">x</a>=1)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
86 |
{BUG_ID + FS + "pkg" + FS + "D.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
87 |
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
88 |
"(<a href=\"../pkg/RegArryDoc.html#y()\">y</a>=1)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
89 |
{BUG_ID + FS + "pkg" + FS + "D.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
90 |
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
91 |
"(<a href=\"../pkg/RegArryDoc.html#y()\">y</a>={1,2})"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
92 |
{BUG_ID + FS + "pkg" + FS + "D.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
93 |
"<a href=\"../pkg/NonSynthDocContainer.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
94 |
"title=\"annotation in pkg\">@NonSynthDocContainer</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
95 |
"(<a href=\"../pkg/NonSynthDocContainer.html#value()\">value</a>=" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
96 |
"<a href=\"../pkg/RegArryDoc.html\" title=\"annotation in pkg\">@RegArryDoc</a>)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
97 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
98 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
99 |
"<a href=\"../pkg1/RegContainerValDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
100 |
"title=\"annotation in pkg1\">@RegContainerValDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
101 |
"(<a href=\"../pkg1/RegContainerValDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
102 |
"<a href=\"../pkg1/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
103 |
"title=\"annotation in pkg1\">@RegContaineeNotDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
104 |
"<a href=\"../pkg1/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
105 |
"title=\"annotation in pkg1\">@RegContaineeNotDoc</a>}," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
106 |
"<a href=\"../pkg1/RegContainerValDoc.html#y()\">y</a>=3)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
107 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
108 |
"<a href=\"../pkg1/ContainerValDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
109 |
"title=\"annotation in pkg1\">@ContainerValDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
110 |
"(<a href=\"../pkg1/ContainerValDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
111 |
"<a href=\"../pkg1/ContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
112 |
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
113 |
"<a href=\"../pkg1/ContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
114 |
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
115 |
"<a href=\"../pkg1/ContainerValDoc.html#x()\">x</a>=1)"} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
116 |
}; |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
117 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
118 |
private static final String[][] NEGATED_TEST = { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
119 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
120 |
"<a href=\"../pkg/RegContaineeDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
121 |
"title=\"annotation in pkg\">@RegContaineeDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
122 |
"<a href=\"../pkg/RegContaineeDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
123 |
"title=\"annotation in pkg\">@RegContaineeDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
124 |
{BUG_ID + FS + "pkg" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
125 |
"<a href=\"../pkg/RegContainerNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
126 |
"title=\"annotation in pkg\">@RegContainerNotDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
127 |
"(<a href=\"../pkg/RegContainerNotDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
128 |
"<a href=\"../pkg/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
129 |
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
130 |
"<a href=\"../pkg/RegContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
131 |
"title=\"annotation in pkg\">@RegContaineeNotDoc</a>})"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
132 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
133 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
134 |
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
135 |
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a> " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
136 |
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
137 |
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a>"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
138 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
139 |
"<a href=\"../pkg1/RegContainerValNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
140 |
"title=\"annotation in pkg1\">@RegContainerValNotDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
141 |
"(<a href=\"../pkg1/RegContainerValNotDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
142 |
"<a href=\"../pkg1/RegContaineeDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
143 |
"title=\"annotation in pkg1\">@RegContaineeDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
144 |
"<a href=\"../pkg1/RegContaineeDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
145 |
"title=\"annotation in pkg1\">@RegContaineeDoc</a>}," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
146 |
"<a href=\"../pkg1/RegContainerValNotDoc.html#y()\">y</a>=4)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
147 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
148 |
"<a href=\"../pkg1/ContainerValNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
149 |
"title=\"annotation in pkg1\">@ContainerValNotDoc</a>" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
150 |
"(<a href=\"../pkg1/ContainerValNotDoc.html#value()\">value</a>={" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
151 |
"<a href=\"../pkg1/ContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
152 |
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
153 |
"<a href=\"../pkg1/ContaineeNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
154 |
"title=\"annotation in pkg1\">@ContaineeNotDoc</a>}," + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
155 |
"<a href=\"../pkg1/ContainerValNotDoc.html#x()\">x</a>=2)"}, |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
156 |
{BUG_ID + FS + "pkg1" + FS + "C.html", |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
157 |
"<a href=\"../pkg1/ContainerSynthNotDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
158 |
"title=\"annotation in pkg1\">@ContainerSynthNotDoc</a>(" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
159 |
"<a href=\"../pkg1/ContainerSynthNotDoc.html#value()\">value</a>=" + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
160 |
"<a href=\"../pkg1/ContaineeSynthDoc.html\" " + |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
161 |
"title=\"annotation in pkg1\">@ContaineeSynthDoc</a>)"} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
162 |
}; |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
163 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
164 |
/** |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
165 |
* The entry point of the test. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
166 |
* @param args the array of command line arguments. |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
167 |
*/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
168 |
public static void main(String[] args) { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
169 |
TestRepeatedAnnotations tester = new TestRepeatedAnnotations(); |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
170 |
run(tester, ARGS, TEST, NEGATED_TEST); |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
171 |
tester.printSummary(); |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
172 |
} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
173 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
174 |
/** |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
175 |
* {@inheritDoc} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
176 |
*/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
177 |
public String getBugId() { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
178 |
return BUG_ID; |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
179 |
} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
180 |
|
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
181 |
/** |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
182 |
* {@inheritDoc} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
183 |
*/ |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
184 |
public String getBugName() { |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
185 |
return getClass().getName(); |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
186 |
} |
d03c311f44e6
8005092: javadoc should check for synthesized bit on an annotation
bpatel
parents:
diff
changeset
|
187 |
} |