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