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