author | alanb |
Tue, 24 Mar 2009 14:03:46 +0000 | |
changeset 2424 | 3663fccf2fc3 |
parent 2216 | b124d5c924eb |
child 2320 | 5b8c377175f4 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
2 |
* Copyright 2003-2006 Sun Microsystems, Inc. All Rights Reserved. |
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
7 |
* published by the Free Software Foundation. |
|
8 |
* |
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
* accompanied this code). |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License version |
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
18 |
* |
|
19 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
|
21 |
* have any questions. |
|
22 |
*/ |
|
23 |
||
24 |
/* |
|
25 |
* @test |
|
26 |
* @bug 4789689 4905985 4927164 4827184 4993906 5004549 |
|
27 |
* @summary Run Javadoc on a set of source files that demonstrate new |
|
28 |
* language features. Check the output to ensure that the new |
|
29 |
* language features are properly documented. |
|
30 |
* @author jamieh |
|
31 |
* @library ../lib/ |
|
32 |
* @build JavadocTester |
|
33 |
* @build TestNewLanguageFeatures |
|
34 |
* @run main TestNewLanguageFeatures |
|
35 |
*/ |
|
36 |
||
37 |
public class TestNewLanguageFeatures extends JavadocTester { |
|
38 |
||
39 |
//Test information. |
|
40 |
private static final String BUG_ID = "4789689-4905985-4927164-4827184-4993906"; |
|
41 |
||
42 |
//Javadoc arguments. |
|
43 |
private static final String[] ARGS = new String[] { |
|
44 |
"-d", BUG_ID, "-use", "-source", "1.5", "-sourcepath", SRC_DIR, "pkg", "pkg1", "pkg2" |
|
45 |
}; |
|
46 |
||
47 |
//Input for string search tests. |
|
48 |
private static final String[][] TEST = |
|
49 |
{ |
|
50 |
//================================= |
|
51 |
// ENUM TESTING |
|
52 |
//================================= |
|
53 |
//Make sure enum header is correct. |
|
54 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</H2>"}, |
|
55 |
//Make sure enum signature is correct. |
|
56 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "public enum "+ |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
57 |
"<STRONG>Coin</STRONG>" + NL + "extends java.lang.Enum<" + |
10 | 58 |
"<A HREF=\"../pkg/Coin.html\" title=\"enum in pkg\">Coin</A>>" |
59 |
}, |
|
60 |
//Check for enum constant section |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
61 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "<STRONG>Enum Constant Summary</STRONG>"}, |
10 | 62 |
//Detail for enum constant |
63 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
64 |
"<STRONG><A HREF=\"../pkg/Coin.html#Dime\">Dime</A></STRONG>"}, |
10 | 65 |
//Automatically insert documentation for values() and valueOf(). |
66 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", |
|
67 |
"Returns an array containing the constants of this enum type,"}, |
|
68 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", |
|
69 |
"Returns the enum constant of this type with the specified name"}, |
|
70 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "for (Coin c : Coin.values())"}, |
|
71 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded valueOf() method has correct documentation."}, |
|
72 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded values method has correct documentation."}, |
|
73 |
||
74 |
//================================= |
|
75 |
// TYPE PARAMETER TESTING |
|
76 |
//================================= |
|
77 |
//Make sure the header is correct. |
|
78 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
79 |
"Class TypeParameters<E></H2>"}, |
|
80 |
//Check class type parameters section. |
|
81 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
82 |
"<DT><STRONG>Type Parameters:</STRONG></DT><DD><CODE>E</CODE> - " + |
10 | 83 |
"the type parameter for this class."}, |
84 |
//Type parameters in @see/@link |
|
85 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
86 |
"<DT><STRONG>See Also:</STRONG></DT><DD><A HREF=\"../pkg/TypeParameters.html\" " + |
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
87 |
"title=\"class in pkg\"><CODE>TypeParameters</CODE></A></DD></DL>"}, |
10 | 88 |
//Method that uses class type parameter. |
89 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
90 |
"(<A HREF=\"../pkg/TypeParameters.html\" title=\"type " + |
|
91 |
"parameter in TypeParameters\">E</A> param)"}, |
|
92 |
//Method type parameter section. |
|
93 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
94 |
"<STRONG>Type Parameters:</STRONG></DT><DD><CODE>T</CODE> - This is the first " + |
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
95 |
"type parameter.</DD><DD><CODE>V</CODE> - This is the second type " + |
10 | 96 |
"parameter."}, |
97 |
//Signature of method with type parameters |
|
98 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
99 |
"public <T extends java.util.List,V> " + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
100 |
"java.lang.String[] <STRONG>methodThatHasTypeParameters</STRONG>"}, |
10 | 101 |
//Wildcard testing. |
102 |
{BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
|
103 |
"<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
|
104 |
"TypeParameters</A><? super java.lang.String> a"}, |
|
105 |
{BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
|
106 |
"<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
|
107 |
"TypeParameters</A><? extends java.lang.StringBuffer> b"}, |
|
108 |
{BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
|
109 |
"<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
|
110 |
"TypeParameters</A> c"}, |
|
111 |
//Bad type parameter warnings. |
|
112 |
{WARNING_OUTPUT, "warning - @param argument " + |
|
113 |
"\"<BadClassTypeParam>\" is not a type parameter name."}, |
|
114 |
{WARNING_OUTPUT, "warning - @param argument " + |
|
115 |
"\"<BadMethodTypeParam>\" is not a type parameter name."}, |
|
116 |
||
117 |
//Signature of subclass that has type parameters. |
|
118 |
{BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
119 |
"public class <STRONG>TypeParameterSubClass<T extends java.lang.String>" + |
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
120 |
"</STRONG>" + NL + "extends <A HREF=\"../pkg/TypeParameterSuperClass.html\" " + |
10 | 121 |
"title=\"class in pkg\">TypeParameterSuperClass</A><T>"}, |
122 |
||
123 |
//Interface generic parameter substitution |
|
124 |
//Signature of subclass that has type parameters. |
|
125 |
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
126 |
"<STRONG>All Implemented Interfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A><E>, <A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A><E></DD>"}, |
10 | 127 |
{BUG_ID + FS + "pkg" + FS + "SuperInterface.html", |
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
128 |
"<STRONG>All Known Subinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A><V></DD>"}, |
10 | 129 |
{BUG_ID + FS + "pkg" + FS + "SubInterface.html", |
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
130 |
"<STRONG>All Superinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A><V></DD>"}, |
10 | 131 |
|
132 |
//================================= |
|
133 |
// VAR ARG TESTING |
|
134 |
//================================= |
|
135 |
{BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int... i)"}, |
|
136 |
{BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[][]... i)"}, |
|
137 |
{BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[]...)"}, |
|
138 |
{BUG_ID + FS + "pkg" + FS + "VarArgs.html", |
|
139 |
"<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
|
140 |
"TypeParameters</A>... t"}, |
|
141 |
||
142 |
//================================= |
|
143 |
// ANNOTATION TYPE TESTING |
|
144 |
//================================= |
|
145 |
//Make sure the summary links are correct. |
|
146 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
147 |
"SUMMARY: <A HREF=\"#annotation_type_required_element_summary\">" + |
|
148 |
"REQUIRED</A> | <A HREF=\"#annotation_type_optional_element_summary\">" + |
|
149 |
"OPTIONAL</A>"}, |
|
150 |
//Make sure the detail links are correct. |
|
151 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
152 |
"DETAIL: <A HREF=\"#annotation_type_element_detail\">ELEMENT</A>"}, |
|
153 |
//Make sure the heading is correct. |
|
154 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
155 |
"Annotation Type AnnotationType</H2>"}, |
|
156 |
//Make sure the signature is correct. |
|
157 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
158 |
"public @interface <STRONG>AnnotationType</STRONG>"}, |
10 | 159 |
//Make sure member summary headings are correct. |
160 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
161 |
"<STRONG>Required Element Summary</STRONG>"}, |
10 | 162 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
163 |
"<STRONG>Optional Element Summary</STRONG>"}, |
10 | 164 |
//Make sure element detail heading is correct |
165 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
166 |
"Element Detail"}, |
|
167 |
//Make sure default annotation type value is printed when necessary. |
|
168 |
{BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
169 |
"<STRONG>Default:</STRONG></DT><DD>\"unknown\"</DD>"}, |
10 | 170 |
|
171 |
//================================= |
|
172 |
// ANNOTATION TYPE USAGE TESTING |
|
173 |
//================================= |
|
174 |
||
175 |
//PACKAGE |
|
176 |
{BUG_ID + FS + "pkg" + FS + "package-summary.html", |
|
177 |
"<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Package Annotation\"," + NL + |
|
178 |
" <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"}, |
|
179 |
||
180 |
//CLASS |
|
181 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
182 |
"<FONT SIZE=\"-1\">" + |
|
183 |
"<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Class Annotation\","+NL + |
|
184 |
" <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL + |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
185 |
"</FONT>public class <STRONG>AnnotationTypeUsage</STRONG>" + NL + |
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
186 |
"extends java.lang.Object"}, |
10 | 187 |
|
188 |
//FIELD |
|
189 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
190 |
"<FONT SIZE=\"-1\">" + |
|
191 |
"<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Field Annotation\","+NL + |
|
192 |
" <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
193 |
"</FONT>public int <STRONG>field</STRONG>"}, |
10 | 194 |
|
195 |
//CONSTRUCTOR |
|
196 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
197 |
"<FONT SIZE=\"-1\">" + |
|
198 |
"<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Constructor Annotation\","+NL + |
|
199 |
" <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
200 |
"</FONT>public <STRONG>AnnotationTypeUsage</STRONG>()"}, |
10 | 201 |
|
202 |
//METHOD |
|
203 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
204 |
"<FONT SIZE=\"-1\">" + |
|
205 |
"<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Method Annotation\","+NL + |
|
206 |
" <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
207 |
"</FONT>public void <STRONG>method</STRONG>()"}, |
10 | 208 |
|
209 |
//METHOD PARAMS |
|
210 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
211 |
"<PRE>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
212 |
"public void <STRONG>methodWithParams</STRONG>(<FONT SIZE=\"-1\"><A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Parameter Annotation\",<A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)</FONT>" + NL + |
10 | 213 |
" int documented," + NL + |
214 |
" int undocmented)</PRE>"}, |
|
215 |
||
216 |
//CONSTRUCTOR PARAMS |
|
217 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
218 |
"<PRE>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
219 |
"public <STRONG>AnnotationTypeUsage</STRONG>(<FONT SIZE=\"-1\"><A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Constructor Param Annotation\",<A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)</FONT>" + NL + |
10 | 220 |
" int documented," + NL + |
221 |
" int undocmented)</PRE>"}, |
|
222 |
||
223 |
//================================= |
|
224 |
// ANNOTATION TYPE USAGE TESTING (All Different Types). |
|
225 |
//================================= |
|
226 |
||
227 |
//Integer |
|
228 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
229 |
"<A HREF=\"../pkg1/A.html#d()\">d</A>=3.14,"}, |
|
230 |
||
231 |
//Double |
|
232 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
233 |
"<A HREF=\"../pkg1/A.html#d()\">d</A>=3.14,"}, |
|
234 |
||
235 |
//Boolean |
|
236 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
237 |
"<A HREF=\"../pkg1/A.html#b()\">b</A>=true,"}, |
|
238 |
||
239 |
//String |
|
240 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
241 |
"<A HREF=\"../pkg1/A.html#s()\">s</A>=\"sigh\","}, |
|
242 |
||
243 |
//Class |
|
244 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
245 |
"<A HREF=\"../pkg1/A.html#c()\">c</A>=<A HREF=\"../pkg2/Foo.html\" title=\"class in pkg2\">Foo.class</A>,"}, |
|
246 |
||
247 |
//Bounded Class |
|
248 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
249 |
"<A HREF=\"../pkg1/A.html#w()\">w</A>=<A HREF=\"../pkg/TypeParameterSubClass.html\" title=\"class in pkg\">TypeParameterSubClass.class</A>,"}, |
|
250 |
||
251 |
//Enum |
|
252 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
253 |
"<A HREF=\"../pkg1/A.html#e()\">e</A>=<A HREF=\"../pkg/Coin.html#Penny\">Penny</A>,"}, |
|
254 |
||
255 |
//Annotation Type |
|
256 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
257 |
"<A HREF=\"../pkg1/A.html#a()\">a</A>=<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"foo\",<A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994),"}, |
|
258 |
||
259 |
//String Array |
|
260 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
261 |
"<A HREF=\"../pkg1/A.html#sa()\">sa</A>={\"up\",\"down\"},"}, |
|
262 |
||
263 |
//Primitive |
|
264 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
265 |
"<A HREF=\"../pkg1/A.html#primitiveClassTest()\">primitiveClassTest</A>=boolean.class,"}, |
|
266 |
||
267 |
//XXX: Add array test case after this if fixed: |
|
268 |
//5020899: Incorrect internal representation of class-valued annotation elements |
|
269 |
||
270 |
//Make sure that annotations are surrounded by <pre> and </pre> |
|
271 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
272 |
"<PRE><FONT SIZE=\"-1\"><A HREF=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</A>"}, |
|
273 |
{BUG_ID + FS + "pkg1" + FS + "B.html", |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
274 |
"</FONT>public interface <STRONG>B</STRONG></PRE>"}, |
10 | 275 |
|
276 |
||
277 |
//============================================================== |
|
278 |
// Handle multiple bounds. |
|
279 |
//============================================================== |
|
280 |
{BUG_ID + FS + "pkg" + FS + "MultiTypeParameters.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
281 |
"public <T extends java.lang.Number & java.lang.Runnable> T <STRONG>foo</STRONG>(T t)"}, |
10 | 282 |
|
283 |
//============================================================== |
|
284 |
// Test Class-Use Documenation for Type Parameters. |
|
285 |
//============================================================== |
|
286 |
||
287 |
//ClassUseTest1: <T extends Foo & Foo2> |
|
288 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
289 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A></FONT></TH>" |
|
290 |
}, |
|
291 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
292 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html\" title=\"class in pkg2\">ClassUseTest1<T extends Foo & Foo2></A></STRONG></CODE>" |
10 | 293 |
}, |
294 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
295 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A></FONT></TH>" |
|
296 |
}, |
|
297 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
298 |
"<TD><CODE><STRONG>ClassUseTest1.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 299 |
}, |
300 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
301 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A></FONT></TH>" |
|
302 |
}, |
|
303 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
|
304 |
"<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A><<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>></CODE></FONT></TD>" |
|
305 |
}, |
|
306 |
||
307 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
308 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> declared as <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A></FONT></TH>" |
|
309 |
}, |
|
310 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
311 |
"<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A><<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>></CODE></FONT></TD>" |
|
312 |
}, |
|
313 |
||
314 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
|
315 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">Foo2</A></FONT></TH>" |
|
316 |
}, |
|
317 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
318 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html\" title=\"class in pkg2\">ClassUseTest1<T extends Foo & Foo2></A></STRONG></CODE>" |
10 | 319 |
}, |
320 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
|
321 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">Foo2</A></FONT></TH>" |
|
322 |
}, |
|
323 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
324 |
"<TD><CODE><STRONG>ClassUseTest1.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 325 |
}, |
326 |
||
327 |
//ClassUseTest2: <T extends ParamTest<Foo3>> |
|
328 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
329 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A></FONT></TH>" |
|
330 |
}, |
|
331 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
332 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html\" title=\"class in pkg2\">ClassUseTest2<T extends ParamTest<<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>>></A></STRONG></CODE>" |
10 | 333 |
}, |
334 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
335 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A></FONT></TH>" |
|
336 |
}, |
|
337 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
338 |
"<TD><CODE><STRONG>ClassUseTest2.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 339 |
}, |
340 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
341 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> declared as <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A></FONT></TH>" |
|
342 |
}, |
|
343 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
344 |
"<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A><<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>></CODE></FONT></TD>" |
|
345 |
}, |
|
346 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
347 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A></FONT></TH>" |
|
348 |
}, |
|
349 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
|
350 |
"<T extends <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A><<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>>>" |
|
351 |
}, |
|
352 |
||
353 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
354 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A></FONT></TH>" |
|
355 |
}, |
|
356 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
357 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html\" title=\"class in pkg2\">ClassUseTest2<T extends ParamTest<<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>>></A></STRONG></CODE>" |
10 | 358 |
}, |
359 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
360 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A></FONT></TH>" |
|
361 |
}, |
|
362 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
363 |
"<TD><CODE><STRONG>ClassUseTest2.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 364 |
}, |
365 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
366 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> that return types with arguments of type <A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A></FONT></TH>" |
|
367 |
}, |
|
368 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
|
369 |
"<T extends <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A><<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>>>" |
|
370 |
}, |
|
371 |
||
372 |
//ClassUseTest3: <T extends ParamTest2<List<? extends Foo4>>> |
|
373 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
374 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A></FONT></TH>" |
|
375 |
}, |
|
376 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
377 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html\" title=\"class in pkg2\">ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>></A></STRONG></CODE>" |
10 | 378 |
}, |
379 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
380 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A></FONT></TH>" |
|
381 |
}, |
|
382 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
383 |
"<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 384 |
}, |
385 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
386 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A></FONT></TH>" |
|
387 |
}, |
|
388 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
|
389 |
"<T extends <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A><java.util.List<? extends <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>>>>" |
|
390 |
}, |
|
391 |
||
392 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
393 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A></FONT></TH>" |
|
394 |
}, |
|
395 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
396 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html\" title=\"class in pkg2\">ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>></A></STRONG></CODE>" |
10 | 397 |
}, |
398 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
399 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type parameters of type <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A></FONT></TH>" |
|
400 |
}, |
|
401 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
402 |
"<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#method(T)\">method</A></STRONG>(T t)</CODE>" |
10 | 403 |
}, |
404 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
405 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> that return types with arguments of type <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A></FONT></TH>" |
|
406 |
}, |
|
407 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
408 |
"<T extends <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A><java.util.List<? extends <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>>>>" |
|
409 |
}, |
|
410 |
||
411 |
//Type parameters in constructor and method args |
|
412 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
413 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Method parameters in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type arguments of type <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A></FONT></TH>" + NL + |
|
414 |
"</TR>" + NL + |
|
415 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
416 |
"<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL + |
|
417 |
"<CODE> void</CODE></FONT></TD>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
418 |
"<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#method(java.util.Set)\">method</A></STRONG>(java.util.Set<<A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>> p)</CODE>" |
10 | 419 |
}, |
420 |
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
|
421 |
"<TH ALIGN=\"left\" COLSPAN=\"2\">Constructor parameters in <A HREF=\"../../pkg2/package-summary.html\">pkg2</A> with type arguments of type <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A></FONT></TH>" + NL + |
|
422 |
"</TR>" + NL + |
|
423 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
424 |
"<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#ClassUseTest3(java.util.Set)\">ClassUseTest3</A></STRONG>(java.util.Set<<A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>> p)</CODE>" |
10 | 425 |
}, |
426 |
||
427 |
//================================= |
|
428 |
// Annotatation Type Usage |
|
429 |
//================================= |
|
430 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
431 |
"<FONT SIZE=\"+2\">" + NL + |
|
432 |
"Packages with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
433 |
"</TR>" + NL + |
|
434 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
435 |
"<TD><A HREF=\"../../pkg/package-summary.html\"><STRONG>pkg</STRONG></A></TD>" |
10 | 436 |
}, |
437 |
||
438 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
439 |
"Classes in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
440 |
"</TR>" + NL + |
|
441 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
442 |
"<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL + |
|
443 |
"<CODE> class</CODE></FONT></TD>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
444 |
"<TD><CODE><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html\" title=\"class in pkg\">AnnotationTypeUsage</A></STRONG></CODE>" |
10 | 445 |
}, |
446 |
||
447 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
448 |
"Fields in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
449 |
"</TR>" + NL + |
|
450 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
451 |
"<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL + |
|
452 |
"<CODE> int</CODE></FONT></TD>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
453 |
"<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html#field\">field</A></STRONG></CODE>" |
10 | 454 |
}, |
455 |
||
456 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
457 |
"Methods in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
458 |
"</TR>" + NL + |
|
459 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
460 |
"<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL + |
|
461 |
"<CODE> void</CODE></FONT></TD>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
462 |
"<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html#method()\">method</A></STRONG>()</CODE>" |
10 | 463 |
}, |
464 |
||
465 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
466 |
"Method parameters in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
467 |
"</TR>" + NL + |
|
468 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
469 |
"<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL + |
|
470 |
"<CODE> void</CODE></FONT></TD>" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
471 |
"<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html#methodWithParams(int, int)\">methodWithParams</A></STRONG>(int documented," + NL + |
10 | 472 |
" int undocmented)</CODE>" |
473 |
}, |
|
474 |
||
475 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
476 |
"Constructors in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
477 |
"</TR>" + NL + |
|
478 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
479 |
"<TD><CODE><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html#AnnotationTypeUsage()\">AnnotationTypeUsage</A></STRONG>()</CODE>" |
10 | 480 |
}, |
481 |
||
482 |
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
|
483 |
"Constructor parameters in <A HREF=\"../../pkg/package-summary.html\">pkg</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" title=\"annotation in pkg\">AnnotationType</A></FONT></TH>" + NL + |
|
484 |
"</TR>" + NL + |
|
485 |
"<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
486 |
"<TD><CODE><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html#AnnotationTypeUsage(int, int)\">AnnotationTypeUsage</A></STRONG>(int documented," + NL + |
10 | 487 |
" int undocmented)</CODE>" |
488 |
}, |
|
489 |
||
490 |
//================================= |
|
491 |
// TYPE PARAMETER IN INDEX |
|
492 |
//================================= |
|
493 |
{BUG_ID + FS + "index-all.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
494 |
"<A HREF=\"./pkg2/Foo.html#method(java.util.Vector)\"><STRONG>method(Vector<Object>)</STRONG></A>" |
10 | 495 |
}, |
496 |
//================================= |
|
497 |
// TYPE PARAMETER IN INDEX |
|
498 |
//================================= |
|
499 |
{BUG_ID + FS + "index-all.html", |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
500 |
"<A HREF=\"./pkg2/Foo.html#method(java.util.Vector)\"><STRONG>method(Vector<Object>)</STRONG></A>" |
10 | 501 |
}, |
502 |
}; |
|
503 |
private static final String[][] NEGATED_TEST = { |
|
504 |
//================================= |
|
505 |
// ENUM TESTING |
|
506 |
//================================= |
|
507 |
//NO constructor section |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
508 |
{BUG_ID + FS + "pkg" + FS + "Coin.html", "<STRONG>Constructor Summary</STRONG>"}, |
10 | 509 |
//================================= |
510 |
// TYPE PARAMETER TESTING |
|
511 |
//================================= |
|
512 |
//No type parameters in class frame. |
|
513 |
{BUG_ID + FS + "allclasses-frame.html", |
|
514 |
"<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
|
515 |
"TypeParameters</A><<A HREF=\"../pkg/TypeParameters.html\" " + |
|
516 |
"title=\"type parameter in TypeParameters\">E</A>>" |
|
517 |
}, |
|
518 |
||
519 |
//============================================================== |
|
520 |
// ANNOTATION TYPE USAGE TESTING (When @Documented is omitted) |
|
521 |
//=============================================================== |
|
522 |
||
523 |
//CLASS |
|
524 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
525 |
"<FONT SIZE=\"-1\">" + NL + |
|
526 |
"<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Class Annotation\"," + NL + |
|
527 |
" <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL + |
|
2216
b124d5c924eb
6786690: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - DL tag and nesting issue
bpatel
parents:
1787
diff
changeset
|
528 |
"</FONT>public class <STRONG>AnnotationTypeUsage</STRONG></DT><DT>extends java.lang.Object</DT></DL>"}, |
10 | 529 |
|
530 |
//FIELD |
|
531 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
532 |
"<FONT SIZE=\"-1\">" + NL + |
|
533 |
"<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Field Annotation\"," + NL + |
|
534 |
" <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
535 |
"</FONT>public int <STRONG>field</STRONG>"}, |
10 | 536 |
|
537 |
//CONSTRUCTOR |
|
538 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
539 |
"<FONT SIZE=\"-1\">" + NL + |
|
540 |
"<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Constructor Annotation\"," + NL + |
|
541 |
" <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
542 |
"</FONT>public <STRONG>AnnotationTypeUsage</STRONG>()"}, |
10 | 543 |
|
544 |
//METHOD |
|
545 |
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
|
546 |
"<FONT SIZE=\"-1\">" + NL + |
|
547 |
"<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Method Annotation\"," + NL + |
|
548 |
" <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL + |
|
1787
1aa079321cd2
6786028: Javadoc HTML WCAG 2.0 accessibility issues in standard doclet - Bold tags should be strong
bpatel
parents:
10
diff
changeset
|
549 |
"</FONT>public void <STRONG>method</STRONG>()"}, |
10 | 550 |
|
551 |
//================================= |
|
552 |
// Make sure annotation types do not |
|
553 |
// trigger this warning. |
|
554 |
//================================= |
|
555 |
{WARNING_OUTPUT, |
|
556 |
"Internal error: package sets don't match: [] with: null" |
|
557 |
}, |
|
558 |
}; |
|
559 |
||
560 |
/** |
|
561 |
* The entry point of the test. |
|
562 |
* @param args the array of command line arguments. |
|
563 |
*/ |
|
564 |
public static void main(String[] args) { |
|
565 |
TestNewLanguageFeatures tester = new TestNewLanguageFeatures(); |
|
566 |
run(tester, ARGS, TEST, NEGATED_TEST); |
|
567 |
tester.printSummary(); |
|
568 |
} |
|
569 |
||
570 |
/** |
|
571 |
* {@inheritDoc} |
|
572 |
*/ |
|
573 |
public String getBugId() { |
|
574 |
return BUG_ID; |
|
575 |
} |
|
576 |
||
577 |
/** |
|
578 |
* {@inheritDoc} |
|
579 |
*/ |
|
580 |
public String getBugName() { |
|
581 |
return getClass().getName(); |
|
582 |
} |
|
583 |
} |