Fri, 04 Oct 2013 13:32:30 -0700
8008164: Invisible table captions in javadoc-generated html
Reviewed-by: jjg
duke@1 | 1 | /* |
jjg@1490 | 2 | * Copyright (c) 2003, 2013, 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 |
bpatel@958 | 26 | * @bug 4789689 4905985 4927164 4827184 4993906 5004549 7025314 7010344 |
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/ |
bpatel@958 | 32 | * @build JavadocTester TestNewLanguageFeatures |
duke@1 | 33 | * @run main TestNewLanguageFeatures |
duke@1 | 34 | */ |
duke@1 | 35 | |
duke@1 | 36 | public class TestNewLanguageFeatures extends JavadocTester { |
duke@1 | 37 | |
duke@1 | 38 | //Test information. |
duke@1 | 39 | private static final String BUG_ID = "4789689-4905985-4927164-4827184-4993906"; |
duke@1 | 40 | |
duke@1 | 41 | //Javadoc arguments. |
duke@1 | 42 | private static final String[] ARGS = new String[] { |
jjg@1490 | 43 | "-Xdoclint:none", "-d", BUG_ID, "-use", "-source", "1.5", "-sourcepath", SRC_DIR, "pkg", "pkg1", "pkg2" |
duke@1 | 44 | }; |
duke@1 | 45 | |
duke@1 | 46 | //Input for string search tests. |
duke@1 | 47 | private static final String[][] TEST = |
duke@1 | 48 | { |
duke@1 | 49 | //================================= |
duke@1 | 50 | // ENUM TESTING |
duke@1 | 51 | //================================= |
duke@1 | 52 | //Make sure enum header is correct. |
bpatel@766 | 53 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</h2>"}, |
duke@1 | 54 | //Make sure enum signature is correct. |
bpatel@958 | 55 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "<pre>public enum " + |
bpatel@958 | 56 | "<span class=\"strong\">Coin</span>" + NL + |
bpatel@958 | 57 | "extends java.lang.Enum<<a href=\"../pkg/Coin.html\" " + |
bpatel@958 | 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@1935 | 65 | "<span class=\"strong\"><a href=\"../pkg/Coin.html#Dime\">Dime</a></span>"}, |
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", |
jjg@1743 | 83 | "<dt><span class=\"strong\">Type Parameters:</span></dt>" + NL + "<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", |
jjg@1744 | 87 | "<dl>" + NL + "<dt><span class=\"strong\">See Also:</span></dt>" + NL + "<dd>" + |
bpatel@766 | 88 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
jjg@1744 | 89 | "<code>TypeParameters</code></a></dd>" + NL + "</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", |
jjg@1743 | 96 | "<span class=\"strong\">Type Parameters:</span></dt>" + NL + "<dd><code>T</code> - This is the first " + |
jjg@1743 | 97 | "type parameter.</dd>" + NL + "<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@958 | 121 | "<pre>public class <span class=\"strong\">TypeParameterSubClass<T extends " + |
bpatel@958 | 122 | "java.lang.String></span>" + 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@2035 | 158 | "<li>Summary: </li>" + NL + "<li>Field | </li>" + NL + |
bpatel@766 | 159 | "<li><a href=\"#annotation_type_required_element_summary\">" + |
bpatel@942 | 160 | "Required</a> | </li>" + NL + "<li>" + |
bpatel@942 | 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@2035 | 164 | "<li>Detail: </li>" + NL + "<li>Field | </li>" + NL + |
bpatel@942 | 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@958 | 171 | "public @interface <span class=\"strong\">AnnotationType</span>"}, |
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@958 | 201 | "required</a>=1994)" + NL + "public class <span class=\"strong\">" + |
bpatel@958 | 202 | "AnnotationTypeUsage</span>" + 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 + |
jjg@1741 | 238 | " int documented," + NL + |
jjg@1741 | 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 + |
jjg@1741 | 248 | " int documented," + NL + |
jjg@1741 | 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@958 | 302 | "public interface <span class=\"strong\">B</span></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", |
jjg@1736 | 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@1935 | 323 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest1.html\" " + |
bpatel@958 | 324 | "title=\"class in pkg2\">ClassUseTest1</a><T extends " + |
bpatel@958 | 325 | "<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" + |
jjg@1736 | 326 | "</a> & <a href=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">" + |
bpatel@1935 | 327 | "Foo2</a>></span></code> </td>" |
duke@1 | 328 | }, |
duke@1 | 329 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 330 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 331 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 332 | "type <a href=\"../../pkg2/Foo.html\" title=\"class in " + |
bpatel@766 | 333 | "pkg2\">Foo</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 334 | }, |
duke@1 | 335 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 336 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest1." + |
bpatel@1935 | 337 | "</span><code><span class=\"strong\"><a href=\"../../pkg2/" + |
bpatel@1935 | 338 | "ClassUseTest1.html#method(T)\">method</a></span>" + |
bpatel@766 | 339 | "(T t)</code> </td>" |
duke@1 | 340 | }, |
duke@1 | 341 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 342 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 343 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 344 | "type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + |
bpatel@766 | 345 | "Foo</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 346 | }, |
duke@1 | 347 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", |
bpatel@766 | 348 | "td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 349 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 350 | "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\"" + |
bpatel@766 | 351 | ">Foo</a>></code></td>" |
duke@1 | 352 | }, |
duke@1 | 353 | |
duke@1 | 354 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 355 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 356 | "package-summary.html\">pkg2</a> declared as <a href=\"../" + |
bpatel@766 | 357 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 358 | "</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 359 | }, |
duke@1 | 360 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 361 | "<td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 362 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a><<a " + |
bpatel@766 | 363 | "href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</a" + |
bpatel@766 | 364 | ">></code></td>" |
duke@1 | 365 | }, |
duke@1 | 366 | |
duke@1 | 367 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 368 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 369 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 370 | "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + |
bpatel@766 | 371 | "in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 372 | "</span></caption>" |
duke@1 | 373 | }, |
duke@1 | 374 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@1935 | 375 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest1.html\" " + |
bpatel@958 | 376 | "title=\"class in pkg2\">ClassUseTest1</a><T extends " + |
bpatel@958 | 377 | "<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" + |
jjg@1736 | 378 | "</a> & <a href=\"../../pkg2/Foo2.html\" title=\"interface in pkg2\">" + |
bpatel@1935 | 379 | "Foo2</a>></span></code> </td>" |
duke@1 | 380 | }, |
duke@1 | 381 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 382 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 383 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 384 | "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + |
bpatel@766 | 385 | "in pkg2\">Foo2</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 386 | "</span></caption>" |
duke@1 | 387 | }, |
duke@1 | 388 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", |
bpatel@766 | 389 | "<td class=\"colLast\"><span class=\"strong\">" + |
bpatel@1935 | 390 | "ClassUseTest1.</span><code><span class=\"strong\"><a href=\"../../" + |
bpatel@1935 | 391 | "pkg2/ClassUseTest1.html#method(T)\">method</a></span>" + |
bpatel@766 | 392 | "(T t)</code> </td>" |
duke@1 | 393 | }, |
duke@1 | 394 | |
duke@1 | 395 | //ClassUseTest2: <T extends ParamTest<Foo3>> |
duke@1 | 396 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 397 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 398 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 399 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 400 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 401 | " </span></caption>" |
duke@1 | 402 | }, |
duke@1 | 403 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@1935 | 404 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest2.html\" " + |
bpatel@958 | 405 | "title=\"class in pkg2\">ClassUseTest2</a><T extends " + |
bpatel@958 | 406 | "<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" + |
bpatel@958 | 407 | "ParamTest</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" + |
bpatel@1935 | 408 | "Foo3</a>>></span></code> </td>" |
duke@1 | 409 | }, |
duke@1 | 410 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 411 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 412 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 413 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 414 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 415 | " </span></caption>" |
duke@1 | 416 | }, |
duke@1 | 417 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 418 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest2." + |
bpatel@1935 | 419 | "</span><code><span class=\"strong\"><a href=\"../../pkg2/" + |
bpatel@1935 | 420 | "ClassUseTest2.html#method(T)\">method</a></span>" + |
bpatel@766 | 421 | "(T t)</code> </td>" |
duke@1 | 422 | }, |
duke@1 | 423 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 424 | "<caption><span>Fields in <a href=\"../../pkg2/" + |
bpatel@766 | 425 | "package-summary.html\">pkg2</a> declared as <a href=\"../" + |
bpatel@766 | 426 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 427 | "</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 428 | }, |
duke@1 | 429 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 430 | "<td class=\"colFirst\"><code><a href=\"../../pkg2/" + |
bpatel@766 | 431 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 432 | "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + |
bpatel@766 | 433 | "Foo</a>></code></td>" |
duke@1 | 434 | }, |
duke@1 | 435 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 436 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 437 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 438 | "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + |
bpatel@766 | 439 | "in pkg2\">ParamTest</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 440 | " </span></caption>" |
duke@1 | 441 | }, |
duke@1 | 442 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", |
bpatel@766 | 443 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 444 | "../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest" + |
bpatel@766 | 445 | "</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
jjg@1741 | 446 | "pkg2\">Foo3</a>>><br><a href=\"../../pkg2/" + |
bpatel@766 | 447 | "ParamTest.html\" title=\"class in pkg2\">ParamTest</a>" + |
bpatel@766 | 448 | "<<a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
bpatel@766 | 449 | "pkg2\">Foo3</a>></code></td>" |
duke@1 | 450 | }, |
duke@1 | 451 | |
duke@1 | 452 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 453 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 454 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 455 | "type <a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" + |
bpatel@766 | 456 | "Foo3</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 457 | }, |
duke@1 | 458 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@1935 | 459 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest2.html\" " + |
bpatel@958 | 460 | "title=\"class in pkg2\">ClassUseTest2</a><T extends " + |
bpatel@958 | 461 | "<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" + |
bpatel@958 | 462 | "ParamTest</a><<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" + |
bpatel@1935 | 463 | "Foo3</a>>></span></code> </td>" |
duke@1 | 464 | }, |
duke@1 | 465 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 466 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 467 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 468 | "type <a href=\"../../pkg2/Foo3.html\" title=\"class in " + |
bpatel@766 | 469 | "pkg2\">Foo3</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 470 | "</span></caption>" |
duke@1 | 471 | }, |
duke@1 | 472 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 473 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest2." + |
bpatel@1935 | 474 | "</span><code><span class=\"strong\"><a href=\"../../pkg2/" + |
bpatel@1935 | 475 | "ClassUseTest2.html#method(T)\">method</a></span>" + |
bpatel@766 | 476 | "(T t)</code> </td>" |
duke@1 | 477 | }, |
duke@1 | 478 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 479 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 480 | "package-summary.html\">pkg2</a> that return types with " + |
bpatel@766 | 481 | "arguments of type <a href=\"../../pkg2/Foo3.html\" title" + |
bpatel@766 | 482 | "=\"class in pkg2\">Foo3</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 483 | " </span></caption>" |
duke@1 | 484 | }, |
duke@1 | 485 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", |
bpatel@766 | 486 | "<td class=\"colFirst\"><code><T extends <a href=\"../../" + |
bpatel@766 | 487 | "pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</a><" + |
bpatel@766 | 488 | "<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3" + |
jjg@1741 | 489 | "</a>>><br><a href=\"../../pkg2/ParamTest.html\" " + |
bpatel@766 | 490 | "title=\"class in pkg2\">ParamTest</a><<a href=\"../../pkg2/" + |
bpatel@766 | 491 | "Foo3.html\" title=\"class in pkg2\">Foo3</a>></code></td>" |
duke@1 | 492 | }, |
duke@1 | 493 | |
duke@1 | 494 | //ClassUseTest3: <T extends ParamTest2<List<? extends Foo4>>> |
duke@1 | 495 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 496 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 497 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 498 | "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + |
bpatel@766 | 499 | "in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 500 | " </span></caption>" |
duke@1 | 501 | }, |
duke@1 | 502 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@1935 | 503 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest3.html\" " + |
bpatel@958 | 504 | "title=\"class in pkg2\">ClassUseTest3</a><T extends " + |
bpatel@958 | 505 | "<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@958 | 506 | "ParamTest2</a><java.util.List<? extends " + |
bpatel@958 | 507 | "<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" + |
bpatel@1935 | 508 | "Foo4</a>>>></span></code> </td>" |
duke@1 | 509 | }, |
duke@1 | 510 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 511 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 512 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 513 | "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + |
bpatel@766 | 514 | "in pkg2\">ParamTest2</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 515 | " </span></caption>" |
duke@1 | 516 | }, |
duke@1 | 517 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 518 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3" + |
bpatel@1935 | 519 | ".</span><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@1935 | 520 | "html#method(T)\">method</a></span>(T t)</code> </td>" |
duke@1 | 521 | }, |
duke@1 | 522 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", |
bpatel@766 | 523 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 524 | "../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@766 | 525 | "ParamTest2</a><java.util.List<? extends <a href=\".." + |
bpatel@766 | 526 | "/../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</a>>" + |
jjg@1741 | 527 | ">><br><a href=\"../../pkg2/ParamTest2.html\" " + |
bpatel@766 | 528 | "title=\"class in pkg2\">ParamTest2</a><java.util.List" + |
bpatel@766 | 529 | "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 530 | "class in pkg2\">Foo4</a>>></code></td>" |
duke@1 | 531 | }, |
duke@1 | 532 | |
duke@1 | 533 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 534 | "<caption><span>Classes in <a href=\"../../pkg2/" + |
bpatel@766 | 535 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 536 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 537 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 538 | "</span></caption>" |
duke@1 | 539 | }, |
duke@1 | 540 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@1935 | 541 | "<td class=\"colLast\"><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest3.html\" " + |
bpatel@958 | 542 | "title=\"class in pkg2\">ClassUseTest3</a><T extends " + |
bpatel@958 | 543 | "<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@958 | 544 | "ParamTest2</a><java.util.List<? extends " + |
bpatel@958 | 545 | "<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" + |
bpatel@1935 | 546 | "Foo4</a>>>></span></code> </td>" |
duke@1 | 547 | }, |
duke@1 | 548 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 549 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 550 | "package-summary.html\">pkg2</a> with type parameters of " + |
bpatel@766 | 551 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 552 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> </span></caption>" |
duke@1 | 553 | }, |
duke@1 | 554 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 555 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3." + |
bpatel@1935 | 556 | "</span><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@1935 | 557 | "html#method(T)\">method</a></span>(T t)</code>" + |
bpatel@766 | 558 | " </td>" |
duke@1 | 559 | }, |
duke@1 | 560 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 561 | "<caption><span>Methods in <a href=\"../../pkg2/" + |
bpatel@766 | 562 | "package-summary.html\">pkg2</a> that return types with " + |
bpatel@766 | 563 | "arguments of type <a href=\"../../pkg2/Foo4.html\" " + |
bpatel@766 | 564 | "title=\"class in pkg2\">Foo4</a></span><span class=\"" + |
bpatel@766 | 565 | "tabEnd\"> </span></caption>" |
duke@1 | 566 | }, |
duke@1 | 567 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 568 | "<td class=\"colFirst\"><code><T extends <a href=\"../" + |
bpatel@766 | 569 | "../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + |
bpatel@766 | 570 | "ParamTest2</a><java.util.List<? extends <a href=\".." + |
bpatel@766 | 571 | "/../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</a>>" + |
jjg@1741 | 572 | ">><br><a href=\"../../pkg2/ParamTest2.html\" " + |
bpatel@766 | 573 | "title=\"class in pkg2\">ParamTest2</a><java.util.List" + |
bpatel@766 | 574 | "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 575 | "class in pkg2\">Foo4</a>>></code></td>" |
duke@1 | 576 | }, |
duke@1 | 577 | |
duke@1 | 578 | //Type parameters in constructor and method args |
duke@1 | 579 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 580 | "<caption><span>Method parameters in <a href=\"../../pkg2/" + |
bpatel@766 | 581 | "package-summary.html\">pkg2</a> with type arguments of " + |
bpatel@766 | 582 | "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 583 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 584 | "</span></caption>" + NL + "<tr>" + NL + |
bpatel@766 | 585 | "<th class=\"colFirst\" scope=\"col\">Modifier and Type</th>" + NL + |
bpatel@766 | 586 | "<th class=\"colLast\" scope=\"col\">Method and Description</th>" + NL + |
bpatel@766 | 587 | "</tr>" + NL + "<tbody>" + NL + "<tr class=\"altColor\">" + NL + |
bpatel@766 | 588 | "<td class=\"colFirst\"><code>void</code></td>" + NL + |
bpatel@766 | 589 | "<td class=\"colLast\"><span class=\"strong\">ClassUseTest3." + |
bpatel@1935 | 590 | "</span><code><span class=\"strong\"><a href=\"../../pkg2/ClassUseTest3." + |
bpatel@1935 | 591 | "html#method(java.util.Set)\">method</a></span>(java." + |
bpatel@766 | 592 | "util.Set<<a href=\"../../pkg2/Foo4.html\" title=\"" + |
bpatel@766 | 593 | "class in pkg2\">Foo4</a>> p)</code> </td>" + NL + |
bpatel@766 | 594 | "</tr>" + NL + "</tbody>" |
duke@1 | 595 | }, |
duke@1 | 596 | {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", |
bpatel@766 | 597 | "<caption><span>Constructor parameters in <a href=\"../../" + |
bpatel@766 | 598 | "pkg2/package-summary.html\">pkg2</a> with type arguments " + |
bpatel@766 | 599 | "of type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + |
bpatel@766 | 600 | "pkg2\">Foo4</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 601 | "</span></caption>" |
duke@1 | 602 | }, |
duke@1 | 603 | |
duke@1 | 604 | //================================= |
duke@1 | 605 | // Annotatation Type Usage |
duke@1 | 606 | //================================= |
duke@1 | 607 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 608 | "<caption><span>Packages with annotations of type <a href=\"" + |
bpatel@766 | 609 | "../../pkg/AnnotationType.html\" title=\"annotation in pkg\">" + |
bpatel@766 | 610 | "AnnotationType</a></span><span class=\"tabEnd\"> " + |
bpatel@766 | 611 | "</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>Classes 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=\"" + |
bpatel@766 | 618 | "annotation in pkg\">AnnotationType</a></span><span class" + |
bpatel@766 | 619 | "=\"tabEnd\"> </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>Fields 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>Methods 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>Method parameters 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>Constructors in <a href=\"../../pkg/" + |
bpatel@766 | 648 | "package-summary.html\">pkg</a> with annotations of type " + |
bpatel@766 | 649 | "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + |
bpatel@766 | 650 | "in pkg\">AnnotationType</a></span><span class=\"tabEnd\">" + |
bpatel@766 | 651 | " </span></caption>" |
duke@1 | 652 | }, |
duke@1 | 653 | |
duke@1 | 654 | {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", |
bpatel@766 | 655 | "<caption><span>Constructor parameters in <a href=\"../../" + |
bpatel@766 | 656 | "pkg/package-summary.html\">pkg</a> with annotations of " + |
bpatel@766 | 657 | "type <a href=\"../../pkg/AnnotationType.html\" title=\"" + |
bpatel@766 | 658 | "annotation in pkg\">AnnotationType</a></span><span class=\"" + |
bpatel@766 | 659 | "tabEnd\"> </span></caption>" |
duke@1 | 660 | }, |
duke@1 | 661 | |
duke@1 | 662 | //================================= |
duke@1 | 663 | // TYPE PARAMETER IN INDEX |
duke@1 | 664 | //================================= |
duke@1 | 665 | {BUG_ID + FS + "index-all.html", |
jjg@1372 | 666 | "<span class=\"strong\"><a href=\"pkg2/Foo.html#method(java.util.Vector)\">" + |
bpatel@766 | 667 | "method(Vector<Object>)</a></span>" |
duke@1 | 668 | }, |
duke@1 | 669 | //================================= |
duke@1 | 670 | // TYPE PARAMETER IN INDEX |
duke@1 | 671 | //================================= |
duke@1 | 672 | {BUG_ID + FS + "index-all.html", |
jjg@1372 | 673 | "<span class=\"strong\"><a href=\"pkg2/Foo.html#method(java.util.Vector)\">" + |
bpatel@766 | 674 | "method(Vector<Object>)</a></span>" |
duke@1 | 675 | }, |
duke@1 | 676 | }; |
duke@1 | 677 | private static final String[][] NEGATED_TEST = { |
duke@1 | 678 | //================================= |
duke@1 | 679 | // ENUM TESTING |
duke@1 | 680 | //================================= |
duke@1 | 681 | //NO constructor section |
bpatel@766 | 682 | {BUG_ID + FS + "pkg" + FS + "Coin.html", "<span class=\"strong\">Constructor Summary</span>"}, |
duke@1 | 683 | //================================= |
duke@1 | 684 | // TYPE PARAMETER TESTING |
duke@1 | 685 | //================================= |
duke@1 | 686 | //No type parameters in class frame. |
duke@1 | 687 | {BUG_ID + FS + "allclasses-frame.html", |
bpatel@766 | 688 | "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + |
bpatel@766 | 689 | "TypeParameters</a><<a href=\"../pkg/TypeParameters.html\" " + |
bpatel@766 | 690 | "title=\"type parameter in TypeParameters\">E</a>>" |
duke@1 | 691 | }, |
duke@1 | 692 | |
duke@1 | 693 | //============================================================== |
duke@1 | 694 | // ANNOTATION TYPE USAGE TESTING (When @Documented is omitted) |
duke@1 | 695 | //=============================================================== |
duke@1 | 696 | |
duke@1 | 697 | //CLASS |
duke@1 | 698 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 699 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Class Annotation\"," + NL + |
bpatel@766 | 700 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@1935 | 701 | "public class <span class=\"strong\">AnnotationTypeUsage</span></dt><dt>extends java.lang.Object</dt>"}, |
duke@1 | 702 | |
duke@1 | 703 | //FIELD |
duke@1 | 704 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 705 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Field Annotation\"," + NL + |
bpatel@766 | 706 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@1935 | 707 | "public int <span class=\"strong\">field</span>"}, |
duke@1 | 708 | |
duke@1 | 709 | //CONSTRUCTOR |
duke@1 | 710 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 711 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Constructor Annotation\"," + NL + |
bpatel@766 | 712 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@1935 | 713 | "public <span class=\"strong\">AnnotationTypeUsage</span>()"}, |
duke@1 | 714 | |
duke@1 | 715 | //METHOD |
duke@1 | 716 | {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", |
bpatel@766 | 717 | "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</a>(<a href=\"../pkg/AnnotationType.html#optional\">optional</a>=\"Method Annotation\"," + NL + |
bpatel@766 | 718 | " <a href=\"../pkg/AnnotationType.html#required\">required</a>=1994)" + NL + |
bpatel@1935 | 719 | "public void <span class=\"strong\">method</span>()"}, |
duke@1 | 720 | |
duke@1 | 721 | //================================= |
duke@1 | 722 | // Make sure annotation types do not |
duke@1 | 723 | // trigger this warning. |
duke@1 | 724 | //================================= |
duke@1 | 725 | {WARNING_OUTPUT, |
duke@1 | 726 | "Internal error: package sets don't match: [] with: null" |
duke@1 | 727 | }, |
duke@1 | 728 | }; |
duke@1 | 729 | |
duke@1 | 730 | /** |
duke@1 | 731 | * The entry point of the test. |
duke@1 | 732 | * @param args the array of command line arguments. |
duke@1 | 733 | */ |
duke@1 | 734 | public static void main(String[] args) { |
duke@1 | 735 | TestNewLanguageFeatures tester = new TestNewLanguageFeatures(); |
duke@1 | 736 | run(tester, ARGS, TEST, NEGATED_TEST); |
duke@1 | 737 | tester.printSummary(); |
duke@1 | 738 | } |
duke@1 | 739 | |
duke@1 | 740 | /** |
duke@1 | 741 | * {@inheritDoc} |
duke@1 | 742 | */ |
duke@1 | 743 | public String getBugId() { |
duke@1 | 744 | return BUG_ID; |
duke@1 | 745 | } |
duke@1 | 746 | |
duke@1 | 747 | /** |
duke@1 | 748 | * {@inheritDoc} |
duke@1 | 749 | */ |
duke@1 | 750 | public String getBugName() { |
duke@1 | 751 | return getClass().getName(); |
duke@1 | 752 | } |
duke@1 | 753 | } |