Wed, 01 Dec 2010 11:02:38 -0800
6851834: Javadoc doclet needs a structured approach to generate the output HTML.
Reviewed-by: jjg
duke@1 | 1 | /* |
ohair@554 | 2 | * Copyright (c) 2003, 2006, Oracle and/or its affiliates. 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 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * 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. |
bpatel@766 | 54 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</h2>"}, |
duke@1 | 55 | //Make sure enum signature is correct. |
bpatel@766 | 56 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "<pre>public enum <strong>Coin</strong>" + NL + |
bpatel@766 | 57 | "extends java.lang.Enum<<a href=\"../pkg/Coin.html\" " + |
bpatel@766 | 58 | "title=\"enum in pkg\">Coin</a>></pre>" |
duke@1 | 59 | }, |
duke@1 | 60 | //Check for enum constant section |
bpatel@766 | 61 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "<caption><span>Enum Constants" + |
bpatel@766 | 62 | "</span><span class=\"tabEnd\"> </span></caption>"}, |
duke@1 | 63 | //Detail for enum constant |
duke@1 | 64 | {BUG_ID + FS + "pkg" + FS + "Coin.html", |
bpatel@766 | 65 | "<strong><a href=\"../pkg/Coin.html#Dime\">Dime</a></strong>"}, |
duke@1 | 66 | //Automatically insert documentation for values() and valueOf(). |
duke@1 | 67 | {BUG_ID + FS + "pkg" + FS + "Coin.html", |
duke@1 | 68 | "Returns an array containing the constants of this enum type,"}, |
duke@1 | 69 | {BUG_ID + FS + "pkg" + FS + "Coin.html", |
duke@1 | 70 | "Returns the enum constant of this type with the specified name"}, |
duke@1 | 71 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "for (Coin c : Coin.values())"}, |
duke@1 | 72 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded valueOf() method has correct documentation."}, |
duke@1 | 73 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded values method has correct documentation."}, |
duke@1 | 74 | |
duke@1 | 75 | //================================= |
duke@1 | 76 | // TYPE PARAMETER TESTING |
duke@1 | 77 | //================================= |
duke@1 | 78 | //Make sure the header is correct. |
duke@1 | 79 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 80 | "Class TypeParameters<E></h2>"}, |
duke@1 | 81 | //Check class type parameters section. |
duke@1 | 82 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 83 | "<dt><span class=\"strong\">Type Parameters:</span></dt><dd><code>E</code> - " + |
duke@1 | 84 | "the type parameter for this class."}, |
duke@1 | 85 | //Type parameters in @see/@link |
duke@1 | 86 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 87 | "<dl><dt><span class=\"strong\">See Also:</span></dt><dd>" + |
bpatel@766 | 88 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 89 | "<code>TypeParameters</code></a></dd></dl>"}, |
duke@1 | 90 | //Method that uses class type parameter. |
duke@1 | 91 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 92 | "(<a href=\"../pkg/TypeParameters.html\" title=\"type " + |
bpatel@766 | 93 | "parameter in TypeParameters\">E</a> param)"}, |
duke@1 | 94 | //Method type parameter section. |
duke@1 | 95 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 96 | "<span class=\"strong\">Type Parameters:</span></dt><dd><code>T</code> - This is the first " + |
bpatel@766 | 97 | "type parameter.</dd><dd><code>V</code> - This is the second type " + |
duke@1 | 98 | "parameter."}, |
duke@1 | 99 | //Signature of method with type parameters |
duke@1 | 100 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 101 | "public <T extends java.util.List,V> " + |
bpatel@766 | 102 | "java.lang.String[] methodThatHasTypeParameters"}, |
duke@1 | 103 | //Wildcard testing. |
duke@1 | 104 | {BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
bpatel@766 | 105 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 106 | "TypeParameters</a><? super java.lang.String> a"}, |
duke@1 | 107 | {BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
bpatel@766 | 108 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 109 | "TypeParameters</a><? extends java.lang.StringBuffer> b"}, |
duke@1 | 110 | {BUG_ID + FS + "pkg" + FS + "Wildcards.html", |
bpatel@766 | 111 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 112 | "TypeParameters</a> c"}, |
duke@1 | 113 | //Bad type parameter warnings. |
duke@1 | 114 | {WARNING_OUTPUT, "warning - @param argument " + |
duke@1 | 115 | "\"<BadClassTypeParam>\" is not a type parameter name."}, |
duke@1 | 116 | {WARNING_OUTPUT, "warning - @param argument " + |
duke@1 | 117 | "\"<BadMethodTypeParam>\" is not a type parameter name."}, |
duke@1 | 118 | |
duke@1 | 119 | //Signature of subclass that has type parameters. |
duke@1 | 120 | {BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html", |
bpatel@766 | 121 | "<pre>public class <strong>TypeParameterSubClass<T extends " + |
bpatel@766 | 122 | "java.lang.String></strong>" + NL + "extends " + |
bpatel@766 | 123 | "<a href=\"../pkg/TypeParameterSuperClass.html\" title=\"class in pkg\">" + |
bpatel@766 | 124 | "TypeParameterSuperClass</a><T></pre>"}, |
duke@1 | 125 | |
duke@1 | 126 | //Interface generic parameter substitution |
duke@1 | 127 | //Signature of subclass that has type parameters. |
duke@1 | 128 | {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", |
bpatel@766 | 129 | "<dl>" + NL + "<dt>All Implemented Interfaces:</dt>" + NL + |
bpatel@766 | 130 | "<dd><a href=\"../pkg/SubInterface.html\" title=\"interface in pkg\">" + |
bpatel@766 | 131 | "SubInterface</a><E>, <a href=\"../pkg/SuperInterface.html\" " + |
bpatel@766 | 132 | "title=\"interface in pkg\">SuperInterface</a><E></dd>" + NL + |
bpatel@766 | 133 | "</dl>"}, |
duke@1 | 134 | {BUG_ID + FS + "pkg" + FS + "SuperInterface.html", |
bpatel@766 | 135 | "<dl>" + NL + "<dt>All Known Subinterfaces:</dt>" + NL + |
bpatel@766 | 136 | "<dd><a href=\"../pkg/SubInterface.html\" title=\"interface in pkg\">" + |
bpatel@766 | 137 | "SubInterface</a><V></dd>" + NL + "</dl>"}, |
duke@1 | 138 | {BUG_ID + FS + "pkg" + FS + "SubInterface.html", |
bpatel@766 | 139 | "<dl>" + NL + "<dt>All Superinterfaces:</dt>" + NL + |
bpatel@766 | 140 | "<dd><a href=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">" + |
bpatel@766 | 141 | "SuperInterface</a><V></dd>" + NL + "</dl>"}, |
duke@1 | 142 | |
duke@1 | 143 | //================================= |
duke@1 | 144 | // VAR ARG TESTING |
duke@1 | 145 | //================================= |
duke@1 | 146 | {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int... i)"}, |
duke@1 | 147 | {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[][]... i)"}, |
duke@1 | 148 | {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[]...)"}, |
duke@1 | 149 | {BUG_ID + FS + "pkg" + FS + "VarArgs.html", |
bpatel@766 | 150 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 151 | "TypeParameters</a>... t"}, |
duke@1 | 152 | |
duke@1 | 153 | //================================= |
duke@1 | 154 | // ANNOTATION TYPE TESTING |
duke@1 | 155 | //================================= |
duke@1 | 156 | //Make sure the summary links are correct. |
duke@1 | 157 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 158 | "<li>SUMMARY: </li>" + NL + |
bpatel@766 | 159 | "<li><a href=\"#annotation_type_required_element_summary\">" + |
bpatel@766 | 160 | "REQUIRED</a> | </li>" + NL + "<li>" + |
bpatel@766 | 161 | "<a href=\"#annotation_type_optional_element_summary\">OPTIONAL</a></li>"}, |
duke@1 | 162 | //Make sure the detail links are correct. |
duke@1 | 163 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 164 | "<li>DETAIL: </li>" + NL + |
bpatel@766 | 165 | "<li><a href=\"#annotation_type_element_detail\">ELEMENT</a></li>"}, |
duke@1 | 166 | //Make sure the heading is correct. |
duke@1 | 167 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 168 | "Annotation Type AnnotationType</h2>"}, |
duke@1 | 169 | //Make sure the signature is correct. |
duke@1 | 170 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 171 | "public @interface <strong>AnnotationType</strong>"}, |
duke@1 | 172 | //Make sure member summary headings are correct. |
duke@1 | 173 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 174 | "<h3>Required Element Summary</h3>"}, |
duke@1 | 175 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 176 | "<h3>Optional Element Summary</h3>"}, |
duke@1 | 177 | //Make sure element detail heading is correct |
duke@1 | 178 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
duke@1 | 179 | "Element Detail"}, |
duke@1 | 180 | //Make sure default annotation type value is printed when necessary. |
duke@1 | 181 | {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", |
bpatel@766 | 182 | "<dl>" + NL + "<dt>Default:</dt>" + NL + "<dd>\"unknown\"</dd>" + NL + |
bpatel@766 | 183 | "</dl>"}, |
duke@1 | 184 | |
duke@1 | 185 | //================================= |
duke@1 | 186 | // ANNOTATION TYPE USAGE TESTING |
duke@1 | 187 | //================================= |
duke@1 | 188 | |
duke@1 | 189 | //PACKAGE |
duke@1 | 190 | {BUG_ID + FS + "pkg" + FS + "package-summary.html", |
bpatel@766 | 191 | "<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional()\">optional</a>=\"Package Annotation\"," + NL + |
bpatel@766 | 192 | " <a href=\"../pkg/AnnotationType.html#required()\">required</a>=1994)"}, |
duke@1 | 193 | |
duke@1 | 194 | //CLASS |
duke@1 | 195 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 196 | "<pre><a href=\"../pkg/AnnotationType.html\" " + |
bpatel@766 | 197 | "title=\"annotation in pkg\">@AnnotationType</a>(" + |
bpatel@766 | 198 | "<a href=\"../pkg/AnnotationType.html#optional()\">optional</a>" + |
bpatel@766 | 199 | "=\"Class Annotation\"," + NL + |
bpatel@766 | 200 | " <a href=\"../pkg/AnnotationType.html#required()\">" + |
bpatel@766 | 201 | "required</a>=1994)" + NL + "public class <strong>" + |
bpatel@766 | 202 | "AnnotationTypeUsage</strong>" + NL + "extends java.lang.Object</pre>"}, |
duke@1 | 203 | |
duke@1 | 204 | //FIELD |
duke@1 | 205 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 206 | "<pre><a href=\"../pkg/AnnotationType.html\" " + |
bpatel@766 | 207 | "title=\"annotation in pkg\">@AnnotationType</a>(" + |
bpatel@766 | 208 | "<a href=\"../pkg/AnnotationType.html#optional()\">optional</a>" + |
bpatel@766 | 209 | "=\"Field Annotation\"," + NL + |
bpatel@766 | 210 | " <a href=\"../pkg/AnnotationType.html#required()\">" + |
bpatel@766 | 211 | "required</a>=1994)" + NL + "public int field</pre>"}, |
duke@1 | 212 | |
duke@1 | 213 | //CONSTRUCTOR |
duke@1 | 214 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 215 | "<pre><a href=\"../pkg/AnnotationType.html\" " + |
bpatel@766 | 216 | "title=\"annotation in pkg\">@AnnotationType</a>(" + |
bpatel@766 | 217 | "<a href=\"../pkg/AnnotationType.html#optional()\">optional</a>" + |
bpatel@766 | 218 | "=\"Constructor Annotation\"," + NL + |
bpatel@766 | 219 | " <a href=\"../pkg/AnnotationType.html#required()\">" + |
bpatel@766 | 220 | "required</a>=1994)" + NL + "public AnnotationTypeUsage()</pre>"}, |
duke@1 | 221 | |
duke@1 | 222 | //METHOD |
duke@1 | 223 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 224 | "<pre><a href=\"../pkg/AnnotationType.html\" " + |
bpatel@766 | 225 | "title=\"annotation in pkg\">@AnnotationType</a>(" + |
bpatel@766 | 226 | "<a href=\"../pkg/AnnotationType.html#optional()\">optional</a>" + |
bpatel@766 | 227 | "=\"Method Annotation\"," + NL + |
bpatel@766 | 228 | " <a href=\"../pkg/AnnotationType.html#required()\">" + |
bpatel@766 | 229 | "required</a>=1994)" + NL + "public void method()</pre>"}, |
duke@1 | 230 | |
duke@1 | 231 | //METHOD PARAMS |
duke@1 | 232 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 233 | "<pre>public void methodWithParams(" + |
bpatel@766 | 234 | "<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">" + |
bpatel@766 | 235 | "@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional()\">" + |
bpatel@766 | 236 | "optional</a>=\"Parameter Annotation\",<a " + |
bpatel@766 | 237 | "href=\"../pkg/AnnotationType.html#required()\">required</a>=1994)" + NL + |
bpatel@766 | 238 | " int documented," + NL + |
bpatel@766 | 239 | " int undocmented)</pre>"}, |
duke@1 | 240 | |
duke@1 | 241 | //CONSTRUCTOR PARAMS |
duke@1 | 242 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 243 | "<pre>public AnnotationTypeUsage(<a " + |
bpatel@766 | 244 | "href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">" + |
bpatel@766 | 245 | "@AnnotationType</a>(<a href=\"../pkg/AnnotationType.html#optional()\">" + |
bpatel@766 | 246 | "optional</a>=\"Constructor Param Annotation\",<a " + |
bpatel@766 | 247 | "href=\"../pkg/AnnotationType.html#required()\">required</a>=1994)" + NL + |
bpatel@766 | 248 | " int documented," + NL + |
bpatel@766 | 249 | " int undocmented)</pre>"}, |
duke@1 | 250 | |
duke@1 | 251 | //================================= |
duke@1 | 252 | // ANNOTATION TYPE USAGE TESTING (All Different Types). |
duke@1 | 253 | //================================= |
duke@1 | 254 | |
duke@1 | 255 | //Integer |
duke@1 | 256 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 257 | "<a href=\"../pkg1/A.html#d()\">d</a>=3.14,"}, |
duke@1 | 258 | |
duke@1 | 259 | //Double |
duke@1 | 260 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 261 | "<a href=\"../pkg1/A.html#d()\">d</a>=3.14,"}, |
duke@1 | 262 | |
duke@1 | 263 | //Boolean |
duke@1 | 264 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 265 | "<a href=\"../pkg1/A.html#b()\">b</a>=true,"}, |
duke@1 | 266 | |
duke@1 | 267 | //String |
duke@1 | 268 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 269 | "<a href=\"../pkg1/A.html#s()\">s</a>=\"sigh\","}, |
duke@1 | 270 | |
duke@1 | 271 | //Class |
duke@1 | 272 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 273 | "<a href=\"../pkg1/A.html#c()\">c</a>=<a href=\"../pkg2/Foo.html\" title=\"class in pkg2\">Foo.class</a>,"}, |
duke@1 | 274 | |
duke@1 | 275 | //Bounded Class |
duke@1 | 276 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 277 | "<a href=\"../pkg1/A.html#w()\">w</a>=<a href=\"../pkg/TypeParameterSubClass.html\" title=\"class in pkg\">TypeParameterSubClass.class</a>,"}, |
duke@1 | 278 | |
duke@1 | 279 | //Enum |
duke@1 | 280 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 281 | "<a href=\"../pkg1/A.html#e()\">e</a>=<a href=\"../pkg/Coin.html#Penny\">Penny</a>,"}, |
duke@1 | 282 | |
duke@1 | 283 | //Annotation Type |
duke@1 | 284 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 285 | "<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 | 286 | |
duke@1 | 287 | //String Array |
duke@1 | 288 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 289 | "<a href=\"../pkg1/A.html#sa()\">sa</a>={\"up\",\"down\"},"}, |
duke@1 | 290 | |
duke@1 | 291 | //Primitive |
duke@1 | 292 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 293 | "<a href=\"../pkg1/A.html#primitiveClassTest()\">primitiveClassTest</a>=boolean.class,"}, |
duke@1 | 294 | |
duke@1 | 295 | //XXX: Add array test case after this if fixed: |
duke@1 | 296 | //5020899: Incorrect internal representation of class-valued annotation elements |
duke@1 | 297 | |
duke@1 | 298 | //Make sure that annotations are surrounded by <pre> and </pre> |
duke@1 | 299 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 300 | "<pre><a href=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</a>"}, |
duke@1 | 301 | {BUG_ID + FS + "pkg1" + FS + "B.html", |
bpatel@766 | 302 | "public interface <strong>B</strong></pre>"}, |
duke@1 | 303 | |
duke@1 | 304 | |
duke@1 | 305 | //============================================================== |
duke@1 | 306 | // Handle multiple bounds. |
duke@1 | 307 | //============================================================== |
duke@1 | 308 | {BUG_ID + FS + "pkg" + FS + "MultiTypeParameters.html", |
bpatel@766 | 309 | "public <T extends java.lang.Number & java.lang.Runnable> T foo(T t)"}, |
duke@1 | 310 | |
duke@1 | 311 | //============================================================== |
duke@1 | 312 | // Test Class-Use Documenation for Type Parameters. |
duke@1 | 313 | //============================================================== |
duke@1 | 314 | |
duke@1 | 315 | //ClassUseTest1: <T extends Foo & Foo2> |
duke@1 | 316 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 317 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 318 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 319 | "type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + |
bpatel@766 | 320 | "Foo</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 321 | }, |
duke@1 | 322 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 323 | "<td class=\"colLast\"><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 324 | "ClassUseTest1.html\" title=\"class in pkg2\">ClassUseTest1" + |
bpatel@766 | 325 | "<T extends Foo & Foo2></a></strong></code> </td>" |
duke@1 | 326 | }, |
duke@1 | 327 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 328 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 329 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 330 | "type <a href=\"../../pkg2/Foo.html\" title=\"class in " + |
bpatel@766 | 331 | "pkg2\">Foo</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 332 | }, |
duke@1 | 333 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 334 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest1." + |
bpatel@766 | 335 | "</span><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 336 | "ClassUseTest1.html#method(T)\">method</a></strong>" + |
bpatel@766 | 337 | "(T t)</code> </td>" |
duke@1 | 338 | }, |
duke@1 | 339 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 340 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 341 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 342 | "type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + |
bpatel@766 | 343 | "Foo</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 344 | }, |
duke@1 | 345 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 346 | "td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 347 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 348 | "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\"" + |
bpatel@766 | 349 | ">Foo</a>></code></td>" |
duke@1 | 350 | }, |
duke@1 | 351 | |
duke@1 | 352 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 353 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 354 | "package-summary.html\">pkg2</a> declared as <a href=\"../" + |
bpatel@766 | 355 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 356 | "</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 357 | }, |
duke@1 | 358 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 359 | "<td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 360 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a><<a " + |
bpatel@766 | 361 | "href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</a" + |
bpatel@766 | 362 | ">></code></td>" |
duke@1 | 363 | }, |
duke@1 | 364 | |
duke@1 | 365 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 366 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 367 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 368 | "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + |
bpatel@766 | 369 | "in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 370 | "</span></caption>" |
duke@1 | 371 | }, |
duke@1 | 372 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 373 | "<td class=\"colLast\"><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 374 | "ClassUseTest1.html\" title=\"class in pkg2\">" + |
bpatel@766 | 375 | "ClassUseTest1<T extends Foo & Foo2></a></strong>" + |
bpatel@766 | 376 | "</code> </td>" |
duke@1 | 377 | }, |
duke@1 | 378 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 379 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 380 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 381 | "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + |
bpatel@766 | 382 | "in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 383 | "</span></caption>" |
duke@1 | 384 | }, |
duke@1 | 385 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 386 | "<td class=\"colLast\"><span class=\"strong\">" + |
bpatel@766 | 387 | "ClassUseTest1.</span><code><strong><a href=\"../../" + |
bpatel@766 | 388 | "pkg2/ClassUseTest1.html#method(T)\">method</a></strong>" + |
bpatel@766 | 389 | "(T t)</code> </td>" |
duke@1 | 390 | }, |
duke@1 | 391 | |
duke@1 | 392 | //ClassUseTest2: <T extends ParamTest<Foo3>> |
duke@1 | 393 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 394 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 395 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 396 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 397 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 398 | " </span></caption>" |
duke@1 | 399 | }, |
duke@1 | 400 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 401 | "<td class=\"colLast\"><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 402 | "ClassUseTest2.html\" title=\"class in pkg2\">ClassUseTest2<T " + |
bpatel@766 | 403 | "extends ParamTest<<a href=\"../../pkg2/Foo3.html\" title=\"class " + |
bpatel@766 | 404 | "in pkg2\">Foo3</a>>></a></strong></code> </td>" |
duke@1 | 405 | }, |
duke@1 | 406 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 407 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 408 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 409 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 410 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 411 | " </span></caption>" |
duke@1 | 412 | }, |
duke@1 | 413 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 414 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest2." + |
bpatel@766 | 415 | "</span><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 416 | "ClassUseTest2.html#method(T)\">method</a></strong>" + |
bpatel@766 | 417 | "(T t)</code> </td>" |
duke@1 | 418 | }, |
duke@1 | 419 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 420 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 421 | "package-summary.html\">pkg2</a> declared as <a href=\"../" + |
bpatel@766 | 422 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 423 | "</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 424 | }, |
duke@1 | 425 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 426 | "<td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 427 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 428 | "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + |
bpatel@766 | 429 | "Foo</a>></code></td>" |
duke@1 | 430 | }, |
duke@1 | 431 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 432 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 433 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 434 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 435 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 436 | " </span></caption>" |
duke@1 | 437 | }, |
duke@1 | 438 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 439 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 440 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 441 | "</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
bpatel@766 | 442 | "pkg2\">Foo3</a>>> <br><a href=\"../../pkg2/" + |
bpatel@766 | 443 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 444 | "<<a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
bpatel@766 | 445 | "pkg2\">Foo3</a>></code></td>" |
duke@1 | 446 | }, |
duke@1 | 447 | |
duke@1 | 448 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 449 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 450 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 451 | "type <a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" + |
bpatel@766 | 452 | "Foo3</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 453 | }, |
duke@1 | 454 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 455 | "<td class=\"colLast\"><code><strong><a href=\"../../" + |
bpatel@766 | 456 | "pkg2/ClassUseTest2.html\" title=\"class in pkg2\">" + |
bpatel@766 | 457 | "ClassUseTest2<T extends ParamTest<<a href=\"../../" + |
bpatel@766 | 458 | "pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</a>>>" + |
bpatel@766 | 459 | "</a></strong></code> </td>" |
duke@1 | 460 | }, |
duke@1 | 461 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 462 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 463 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 464 | "type <a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
bpatel@766 | 465 | "pkg2\">Foo3</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 466 | "</span></caption>" |
duke@1 | 467 | }, |
duke@1 | 468 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 469 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest2." + |
bpatel@766 | 470 | "</span><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 471 | "ClassUseTest2.html#method(T)\">method</a></strong>" + |
bpatel@766 | 472 | "(T t)</code> </td>" |
duke@1 | 473 | }, |
duke@1 | 474 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 475 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 476 | "package-summary.html\">pkg2</a> that return types with " + |
bpatel@766 | 477 | "arguments of type <a href=\"../../pkg2/Foo3.html\" title" + |
bpatel@766 | 478 | "=\"class in pkg2\">Foo3</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 479 | " </span></caption>" |
duke@1 | 480 | }, |
duke@1 | 481 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 482 | "<td class=\"colFirst\"><code><T extends <a href=\"../../" + |
bpatel@766 | 483 | "pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</a><" + |
bpatel@766 | 484 | "<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3" + |
bpatel@766 | 485 | "</a>>> <br><a href=\"../../pkg2/ParamTest.html\" " + |
bpatel@766 | 486 | "title=\"class in pkg2\">ParamTest</a><<a href=\"../../pkg2/" + |
bpatel@766 | 487 | "Foo3.html\" title=\"class in pkg2\">Foo3</a>></code></td>" |
duke@1 | 488 | }, |
duke@1 | 489 | |
duke@1 | 490 | //ClassUseTest3: <T extends ParamTest2<List<? extends Foo4>>> |
duke@1 | 491 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 492 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 493 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 494 | "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + |
bpatel@766 | 495 | "in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 496 | " </span></caption>" |
duke@1 | 497 | }, |
duke@1 | 498 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 499 | "<td class=\"colLast\"><code><strong><a href=\"../../pkg2/" + |
bpatel@766 | 500 | "ClassUseTest3.html\" title=\"class in pkg2\">" + |
bpatel@766 | 501 | "ClassUseTest3<T extends ParamTest2<java.util.List" + |
bpatel@766 | 502 | "<? extends Foo4>>></a></strong></code> </td>" |
duke@1 | 503 | }, |
duke@1 | 504 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 505 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 506 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 507 | "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + |
bpatel@766 | 508 | "in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 509 | " </span></caption>" |
duke@1 | 510 | }, |
duke@1 | 511 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 512 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3" + |
bpatel@766 | 513 | ".</span><code><strong><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@766 | 514 | "html#method(T)\">method</a></strong>(T t)</code> </td>" |
duke@1 | 515 | }, |
duke@1 | 516 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 517 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 518 | "../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@766 | 519 | "ParamTest2</a><java.util.List<? extends <a href=\".." + |
bpatel@766 | 520 | "/../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</a>>" + |
bpatel@766 | 521 | ">> <br><a href=\"../../pkg2/ParamTest2.html\" " + |
bpatel@766 | 522 | "title=\"class in pkg2\">ParamTest2</a><java.util.List" + |
bpatel@766 | 523 | "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 524 | "class in pkg2\">Foo4</a>>></code></td>" |
duke@1 | 525 | }, |
duke@1 | 526 | |
duke@1 | 527 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 528 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 529 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 530 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 531 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 532 | "</span></caption>" |
duke@1 | 533 | }, |
duke@1 | 534 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 535 | "<td class=\"colLast\"><code><strong><a href=\"../../" + |
bpatel@766 | 536 | "pkg2/ClassUseTest3.html\" title=\"class in pkg2\">" + |
bpatel@766 | 537 | "ClassUseTest3<T extends ParamTest2<java.util.List" + |
bpatel@766 | 538 | "<? extends Foo4>>></a></strong></code> </td>" |
duke@1 | 539 | }, |
duke@1 | 540 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 541 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 542 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 543 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 544 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 545 | }, |
duke@1 | 546 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 547 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3." + |
bpatel@766 | 548 | "</span><code><strong><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@766 | 549 | "html#method(T)\">method</a></strong>(T t)</code>" + |
bpatel@766 | 550 | " </td>" |
duke@1 | 551 | }, |
duke@1 | 552 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 553 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 554 | "package-summary.html\">pkg2</a> that return types with " + |
bpatel@766 | 555 | "arguments of type <a href=\"../../pkg2/Foo4.html\" " + |
bpatel@766 | 556 | "title=\"class in pkg2\">Foo4</a></span><span class=\"" + |
bpatel@766 | 557 | "tabEnd\"> </span></caption>" |
duke@1 | 558 | }, |
duke@1 | 559 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 560 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 561 | "../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@766 | 562 | "ParamTest2</a><java.util.List<? extends <a href=\".." + |
bpatel@766 | 563 | "/../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</a>>" + |
bpatel@766 | 564 | ">> <br><a href=\"../../pkg2/ParamTest2.html\" " + |
bpatel@766 | 565 | "title=\"class in pkg2\">ParamTest2</a><java.util.List" + |
bpatel@766 | 566 | "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 567 | "class in pkg2\">Foo4</a>>></code></td>" |
duke@1 | 568 | }, |
duke@1 | 569 | |
duke@1 | 570 | //Type parameters in constructor and method args |
duke@1 | 571 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 572 | "<caption><span>Method parameters in <a href=\"../../pkg2/" + |
bpatel@766 | 573 | "package-summary.html\">pkg2</a> with type arguments of " + |
bpatel@766 | 574 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 575 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 576 | "</span></caption>" + NL + "<tr>" + NL + |
bpatel@766 | 577 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 578 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" + NL + |
bpatel@766 | 579 | "</tr>" + NL + "<tbody>" + NL + "<tr class=\"altColor\">" + NL + |
bpatel@766 | 580 | "<td class=\"colFirst\"><code>void</code></td>" + NL + |
bpatel@766 | 581 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3." + |
bpatel@766 | 582 | "</span><code><strong><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@766 | 583 | "html#method(java.util.Set)\">method</a></strong>(java." + |
bpatel@766 | 584 | "util.Set<<a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 585 | "class in pkg2\">Foo4</a>> p)</code> </td>" + NL + |
bpatel@766 | 586 | "</tr>" + NL + "</tbody>" |
duke@1 | 587 | }, |
duke@1 | 588 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 589 | "<caption><span>Constructor parameters in <a href=\"../../" + |
bpatel@766 | 590 | "pkg2/package-summary.html\">pkg2</a> with type arguments " + |
bpatel@766 | 591 | "of type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 592 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 593 | "</span></caption>" |
duke@1 | 594 | }, |
duke@1 | 595 | |
duke@1 | 596 | //================================= |
duke@1 | 597 | // Annotatation Type Usage |
duke@1 | 598 | //================================= |
duke@1 | 599 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 600 | "<caption><span>Packages with annotations of type <a href=\"" + |
bpatel@766 | 601 | "../../pkg/AnnotationType.html\" title=\"annotation in pkg\">" + |
bpatel@766 | 602 | "AnnotationType</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 603 | "</span></caption>" |
duke@1 | 604 | }, |
duke@1 | 605 | |
duke@1 | 606 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 607 | "<caption><span>Classes in <a href=\"../../pkg/" + |
bpatel@766 | 608 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 609 | "<a href=\"../../pkg/AnnotationType.html\" title=\"" + |
bpatel@766 | 610 | "annotation in pkg\">AnnotationType</a></span><span class" + |
bpatel@766 | 611 | "=\"tabEnd\"> </span></caption>" |
duke@1 | 612 | }, |
duke@1 | 613 | |
duke@1 | 614 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 615 | "<caption><span>Fields in <a href=\"../../pkg/" + |
bpatel@766 | 616 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 617 | "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + |
bpatel@766 | 618 | "in pkg\">AnnotationType</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 619 | " </span></caption>" |
duke@1 | 620 | }, |
duke@1 | 621 | |
duke@1 | 622 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 623 | "<caption><span>Methods in <a href=\"../../pkg/" + |
bpatel@766 | 624 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 625 | "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + |
bpatel@766 | 626 | "in pkg\">AnnotationType</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 627 | " </span></caption>" |
duke@1 | 628 | }, |
duke@1 | 629 | |
duke@1 | 630 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 631 | "<caption><span>Method parameters in <a href=\"../../pkg/" + |
bpatel@766 | 632 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 633 | "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + |
bpatel@766 | 634 | "in pkg\">AnnotationType</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 635 | " </span></caption>" |
duke@1 | 636 | }, |
duke@1 | 637 | |
duke@1 | 638 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 639 | "<caption><span>Constructors in <a href=\"../../pkg/" + |
bpatel@766 | 640 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 641 | "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + |
bpatel@766 | 642 | "in pkg\">AnnotationType</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 643 | " </span></caption>" |
duke@1 | 644 | }, |
duke@1 | 645 | |
duke@1 | 646 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 647 | "<caption><span>Constructor parameters in <a href=\"../../" + |
bpatel@766 | 648 | "pkg/package-summary.html\">pkg</a> with annotations of " + |
bpatel@766 | 649 | "type <a href=\"../../pkg/AnnotationType.html\" title=\"" + |
bpatel@766 | 650 | "annotation in pkg\">AnnotationType</a></span><span class=\"" + |
bpatel@766 | 651 | "tabEnd\"> </span></caption>" |
duke@1 | 652 | }, |
duke@1 | 653 | |
duke@1 | 654 | //================================= |
duke@1 | 655 | // TYPE PARAMETER IN INDEX |
duke@1 | 656 | //================================= |
duke@1 | 657 | {BUG_ID + FS + "index-all.html", |
bpatel@766 | 658 | "<span class=\"strong\"><a href=\"./pkg2/Foo.html#method(java.util.Vector)\">" + |
bpatel@766 | 659 | "method(Vector<Object>)</a></span>" |
duke@1 | 660 | }, |
duke@1 | 661 | //================================= |
duke@1 | 662 | // TYPE PARAMETER IN INDEX |
duke@1 | 663 | //================================= |
duke@1 | 664 | {BUG_ID + FS + "index-all.html", |
bpatel@766 | 665 | "<span class=\"strong\"><a href=\"./pkg2/Foo.html#method(java.util.Vector)\">" + |
bpatel@766 | 666 | "method(Vector<Object>)</a></span>" |
duke@1 | 667 | }, |
duke@1 | 668 | }; |
duke@1 | 669 | private static final String[][] NEGATED_TEST = { |
duke@1 | 670 | //================================= |
duke@1 | 671 | // ENUM TESTING |
duke@1 | 672 | //================================= |
duke@1 | 673 | //NO constructor section |
bpatel@766 | 674 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "<span class=\"strong\">Constructor Summary</span>"}, |
duke@1 | 675 | //================================= |
duke@1 | 676 | // TYPE PARAMETER TESTING |
duke@1 | 677 | //================================= |
duke@1 | 678 | //No type parameters in class frame. |
duke@1 | 679 | {BUG_ID + FS + "allclasses-frame.html", |
bpatel@766 | 680 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 681 | "TypeParameters</a><<a href=\"../pkg/TypeParameters.html\" " + |
bpatel@766 | 682 | "title=\"type parameter in TypeParameters\">E</a>>" |
duke@1 | 683 | }, |
duke@1 | 684 | |
duke@1 | 685 | //============================================================== |
duke@1 | 686 | // ANNOTATION TYPE USAGE TESTING (When @Documented is omitted) |
duke@1 | 687 | //=============================================================== |
duke@1 | 688 | |
duke@1 | 689 | //CLASS |
duke@1 | 690 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 691 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Class Annotation\"," + NL + |
bpatel@766 | 692 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@766 | 693 | "public class <strong>AnnotationTypeUsage</strong></dt><dt>extends java.lang.Object</dt>"}, |
duke@1 | 694 | |
duke@1 | 695 | //FIELD |
duke@1 | 696 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 697 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Field Annotation\"," + NL + |
bpatel@766 | 698 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@766 | 699 | "public int <strong>field</strong>"}, |
duke@1 | 700 | |
duke@1 | 701 | //CONSTRUCTOR |
duke@1 | 702 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 703 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Constructor Annotation\"," + NL + |
bpatel@766 | 704 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@766 | 705 | "public <strong>AnnotationTypeUsage</strong>()"}, |
duke@1 | 706 | |
duke@1 | 707 | //METHOD |
duke@1 | 708 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 709 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Method Annotation\"," + NL + |
bpatel@766 | 710 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@766 | 711 | "public void <strong>method</strong>()"}, |
duke@1 | 712 | |
duke@1 | 713 | //================================= |
duke@1 | 714 | // Make sure annotation types do not |
duke@1 | 715 | // trigger this warning. |
duke@1 | 716 | //================================= |
duke@1 | 717 | {WARNING_OUTPUT, |
duke@1 | 718 | "Internal error: package sets don't match: [] with: null" |
duke@1 | 719 | }, |
duke@1 | 720 | }; |
duke@1 | 721 | |
duke@1 | 722 | /** |
duke@1 | 723 | * The entry point of the test. |
duke@1 | 724 | * @param args the array of command line arguments. |
duke@1 | 725 | */ |
duke@1 | 726 | public static void main(String[] args) { |
duke@1 | 727 | TestNewLanguageFeatures tester = new TestNewLanguageFeatures(); |
duke@1 | 728 | run(tester, ARGS, TEST, NEGATED_TEST); |
duke@1 | 729 | tester.printSummary(); |
duke@1 | 730 | } |
duke@1 | 731 | |
duke@1 | 732 | /** |
duke@1 | 733 | * {@inheritDoc} |
duke@1 | 734 | */ |
duke@1 | 735 | public String getBugId() { |
duke@1 | 736 | return BUG_ID; |
duke@1 | 737 | } |
duke@1 | 738 | |
duke@1 | 739 | /** |
duke@1 | 740 | * {@inheritDoc} |
duke@1 | 741 | */ |
duke@1 | 742 | public String getBugName() { |
duke@1 | 743 | return getClass().getName(); |
duke@1 | 744 | } |
duke@1 | 745 | } |