TestNewLanguageFeatures.java 43.2 KB
Newer Older
D
duke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
/*
 * Copyright 2003-2006 Sun Microsystems, Inc.  All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.
 *
 * This code is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
 * CA 95054 USA or visit www.sun.com if you need additional information or
 * have any questions.
 */

/*
 * @test
 * @bug      4789689 4905985 4927164 4827184 4993906 5004549
 * @summary  Run Javadoc on a set of source files that demonstrate new
 *           language features.  Check the output to ensure that the new
 *           language features are properly documented.
 * @author   jamieh
 * @library  ../lib/
 * @build    JavadocTester
 * @build    TestNewLanguageFeatures
 * @run main TestNewLanguageFeatures
 */

public class TestNewLanguageFeatures extends JavadocTester {

    //Test information.
    private static final String BUG_ID = "4789689-4905985-4927164-4827184-4993906";

    //Javadoc arguments.
    private static final String[] ARGS = new String[] {
        "-d", BUG_ID, "-use", "-source", "1.5", "-sourcepath", SRC_DIR, "pkg", "pkg1", "pkg2"
    };

    //Input for string search tests.
    private static final String[][] TEST =
        {
            //=================================
            // ENUM TESTING
            //=================================
            //Make sure enum header is correct.
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</H2>"},
            //Make sure enum signature is correct.
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "public enum "+
57
                "<STRONG>Coin</STRONG>" + NL + "extends java.lang.Enum&lt;" +
D
duke 已提交
58 59 60
                "<A HREF=\"../pkg/Coin.html\" title=\"enum in pkg\">Coin</A>&gt;"
            },
            //Check for enum constant section
61 62
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "<CAPTION CLASS=\"TableCaption\">" + NL +
                     "Enum Constant Summary</CAPTION>"},
D
duke 已提交
63 64
            //Detail for enum constant
            {BUG_ID + FS + "pkg" + FS + "Coin.html",
65
                "<STRONG><A HREF=\"../pkg/Coin.html#Dime\">Dime</A></STRONG>"},
D
duke 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
            //Automatically insert documentation for values() and valueOf().
            {BUG_ID + FS + "pkg" + FS + "Coin.html",
                "Returns an array containing the constants of this enum type,"},
            {BUG_ID + FS + "pkg" + FS + "Coin.html",
                "Returns the enum constant of this type with the specified name"},
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "for (Coin c : Coin.values())"},
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded valueOf() method has correct documentation."},
            {BUG_ID + FS + "pkg" + FS + "Coin.html", "Overloaded values method  has correct documentation."},

            //=================================
            // TYPE PARAMETER TESTING
            //=================================
            //Make sure the header is correct.
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
                "Class TypeParameters&lt;E&gt;</H2>"},
            //Check class type parameters section.
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
83
                "<DT><STRONG>Type Parameters:</STRONG></DT><DD><CODE>E</CODE> - " +
D
duke 已提交
84 85 86
                "the type parameter for this class."},
            //Type parameters in @see/@link
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
87 88
                "<DT><STRONG>See Also:</STRONG></DT><DD><A HREF=\"../pkg/TypeParameters.html\" " +
                    "title=\"class in pkg\"><CODE>TypeParameters</CODE></A></DD></DL>"},
D
duke 已提交
89 90 91 92 93 94
            //Method that uses class type parameter.
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
                "(<A HREF=\"../pkg/TypeParameters.html\" title=\"type " +
                    "parameter in TypeParameters\">E</A>&nbsp;param)"},
            //Method type parameter section.
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
95 96
                "<STRONG>Type Parameters:</STRONG></DT><DD><CODE>T</CODE> - This is the first " +
                    "type parameter.</DD><DD><CODE>V</CODE> - This is the second type " +
D
duke 已提交
97 98 99 100
                    "parameter."},
            //Signature of method with type parameters
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
                "public &lt;T extends java.util.List,V&gt; " +
101
                    "java.lang.String[] <STRONG>methodThatHasTypeParameters</STRONG>"},
D
duke 已提交
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
            //Wildcard testing.
            {BUG_ID + FS + "pkg" + FS + "Wildcards.html",
                "<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
                "TypeParameters</A>&lt;? super java.lang.String&gt;&nbsp;a"},
            {BUG_ID + FS + "pkg" + FS + "Wildcards.html",
                "<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
                "TypeParameters</A>&lt;? extends java.lang.StringBuffer&gt;&nbsp;b"},
            {BUG_ID + FS + "pkg" + FS + "Wildcards.html",
                "<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
                    "TypeParameters</A>&nbsp;c"},
            //Bad type parameter warnings.
            {WARNING_OUTPUT, "warning - @param argument " +
                "\"<BadClassTypeParam>\" is not a type parameter name."},
            {WARNING_OUTPUT, "warning - @param argument " +
                "\"<BadMethodTypeParam>\" is not a type parameter name."},

            //Signature of subclass that has type parameters.
            {BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html",
120
                "public class <STRONG>TypeParameterSubClass&lt;T extends java.lang.String&gt;" +
121
                "</STRONG>" + NL + "extends <A HREF=\"../pkg/TypeParameterSuperClass.html\" " +
D
duke 已提交
122 123 124 125 126
                "title=\"class in pkg\">TypeParameterSuperClass</A>&lt;T&gt;"},

            //Interface generic parameter substitution
            //Signature of subclass that has type parameters.
            {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
127
                "<STRONG>All Implemented Interfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A>&lt;E&gt;, <A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A>&lt;E&gt;</DD>"},
D
duke 已提交
128
            {BUG_ID + FS + "pkg" + FS + "SuperInterface.html",
129
                "<STRONG>All Known Subinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A>&lt;V&gt;</DD>"},
D
duke 已提交
130
            {BUG_ID + FS + "pkg" + FS + "SubInterface.html",
131
                "<STRONG>All Superinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A>&lt;V&gt;</DD>"},
D
duke 已提交
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158

            //=================================
            // VAR ARG TESTING
            //=================================
            {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int...&nbsp;i)"},
            {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[][]...&nbsp;i)"},
            {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[]...)"},
            {BUG_ID + FS + "pkg" + FS + "VarArgs.html",
                "<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
                "TypeParameters</A>...&nbsp;t"},

            //=================================
            // ANNOTATION TYPE TESTING
            //=================================
            //Make sure the summary links are correct.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
                "SUMMARY:&nbsp;<A HREF=\"#annotation_type_required_element_summary\">" +
                "REQUIRED</A>&nbsp;|&nbsp;<A HREF=\"#annotation_type_optional_element_summary\">" +
                "OPTIONAL</A>"},
            //Make sure the detail links are correct.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
                "DETAIL:&nbsp;<A HREF=\"#annotation_type_element_detail\">ELEMENT</A>"},
            //Make sure the heading is correct.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
                "Annotation Type AnnotationType</H2>"},
            //Make sure the signature is correct.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
159
                "public @interface <STRONG>AnnotationType</STRONG>"},
D
duke 已提交
160 161
            //Make sure member summary headings are correct.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
162 163
                "<CAPTION CLASS=\"TableCaption\">" + NL +
                "Required Element Summary</CAPTION>"},
D
duke 已提交
164
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
165 166
                "<CAPTION CLASS=\"TableCaption\">" + NL +
                "Optional Element Summary</CAPTION>"},
D
duke 已提交
167 168 169 170 171
            //Make sure element detail heading is correct
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
                "Element Detail"},
            //Make sure default annotation type value is printed when necessary.
            {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
172
                "<STRONG>Default:</STRONG></DT><DD>\"unknown\"</DD>"},
D
duke 已提交
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

            //=================================
            // ANNOTATION TYPE USAGE TESTING
            //=================================

            //PACKAGE
            {BUG_ID + FS + "pkg" + FS + "package-summary.html",
                "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Package Annotation\"," + NL +
                "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"},

            //CLASS
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<FONT SIZE=\"-1\">" +
                "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Class Annotation\","+NL +
                "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
188 189
                "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG>" + NL +
                "extends java.lang.Object"},
D
duke 已提交
190 191 192 193 194 195

            //FIELD
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<FONT SIZE=\"-1\">" +
                "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Field Annotation\","+NL +
                "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
196
                "</FONT>public int <STRONG>field</STRONG>"},
D
duke 已提交
197 198 199 200 201 202

            //CONSTRUCTOR
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<FONT SIZE=\"-1\">" +
                "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Constructor Annotation\","+NL +
                "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
203
                "</FONT>public <STRONG>AnnotationTypeUsage</STRONG>()"},
D
duke 已提交
204 205 206 207 208 209

            //METHOD
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<FONT SIZE=\"-1\">" +
                "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Method Annotation\","+NL +
                "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
210
                "</FONT>public void <STRONG>method</STRONG>()"},
D
duke 已提交
211 212 213 214

            //METHOD PARAMS
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<PRE>" + NL +
215
                "public void <STRONG>methodWithParams</STRONG>(<FONT SIZE=\"-1\"><A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Parameter Annotation\",<A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)</FONT>" + NL +
D
duke 已提交
216 217 218 219 220 221
                "                             int&nbsp;documented," + NL +
                "                             int&nbsp;undocmented)</PRE>"},

            //CONSTRUCTOR PARAMS
            {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
                "<PRE>" + NL +
222
                                "public <STRONG>AnnotationTypeUsage</STRONG>(<FONT SIZE=\"-1\"><A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Constructor Param Annotation\",<A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)</FONT>" + NL +
D
duke 已提交
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
                                "                           int&nbsp;documented," + NL +
                "                           int&nbsp;undocmented)</PRE>"},

            //=================================
            // ANNOTATION TYPE USAGE TESTING (All Different Types).
            //=================================

            //Integer
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#d()\">d</A>=3.14,"},

            //Double
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#d()\">d</A>=3.14,"},

            //Boolean
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#b()\">b</A>=true,"},

            //String
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#s()\">s</A>=\"sigh\","},

            //Class
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#c()\">c</A>=<A HREF=\"../pkg2/Foo.html\" title=\"class in pkg2\">Foo.class</A>,"},

            //Bounded Class
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#w()\">w</A>=<A HREF=\"../pkg/TypeParameterSubClass.html\" title=\"class in pkg\">TypeParameterSubClass.class</A>,"},

            //Enum
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#e()\">e</A>=<A HREF=\"../pkg/Coin.html#Penny\">Penny</A>,"},

            //Annotation Type
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<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),"},

            //String Array
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#sa()\">sa</A>={\"up\",\"down\"},"},

            //Primitive
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<A HREF=\"../pkg1/A.html#primitiveClassTest()\">primitiveClassTest</A>=boolean.class,"},

            //XXX:  Add array test case after this if fixed:
            //5020899: Incorrect internal representation of class-valued annotation elements

            //Make sure that annotations are surrounded by <pre> and </pre>
            {BUG_ID + FS + "pkg1" + FS + "B.html",
                "<PRE><FONT SIZE=\"-1\"><A HREF=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</A>"},
            {BUG_ID + FS + "pkg1" + FS + "B.html",
277
                "</FONT>public interface <STRONG>B</STRONG></PRE>"},
D
duke 已提交
278 279 280 281 282 283


            //==============================================================
            // Handle multiple bounds.
            //==============================================================
            {BUG_ID + FS + "pkg" + FS + "MultiTypeParameters.html",
284
                "public &lt;T extends java.lang.Number & java.lang.Runnable&gt; T <STRONG>foo</STRONG>(T&nbsp;t)"},
D
duke 已提交
285 286 287 288 289 290 291

            //==============================================================
            // Test Class-Use Documenation for Type Parameters.
            //==============================================================

            //ClassUseTest1: <T extends Foo & Foo2>
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
292 293 294 295
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" " +
                     "title=\"class in pkg2\">Foo</A></CAPTION>"
D
duke 已提交
296 297
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
298
                "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html\" title=\"class in pkg2\">ClassUseTest1&lt;T extends Foo & Foo2&gt;</A></STRONG></CODE>"
D
duke 已提交
299 300
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
301 302 303 304
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" " +
                     "title=\"class in pkg2\">Foo</A></CAPTION>"
D
duke 已提交
305 306
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
307
                "<TD><CODE><STRONG>ClassUseTest1.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
308 309
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
310 311 312 313
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo.html\" " +
                     "title=\"class in pkg2\">Foo</A></CAPTION>"
D
duke 已提交
314 315 316 317 318 319
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
                "<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A>&lt;<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>&gt;</CODE></FONT></TD>"
            },

            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
320 321 322 323
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> declared as <A HREF=\"../../pkg2/ParamTest.html\" " +
                     "title=\"class in pkg2\">ParamTest</A></CAPTION>"
D
duke 已提交
324 325 326 327 328 329
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
                "<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A>&lt;<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>&gt;</CODE></FONT></TD>"
            },

           {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html",
330 331 332 333
                    "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                    "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                    "</A> with type parameters of type <A HREF=\"../../pkg2/Foo2.html\" " +
                    "title=\"interface in pkg2\">Foo2</A></CAPTION>"
D
duke 已提交
334 335
           },
           {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html",
336
            "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html\" title=\"class in pkg2\">ClassUseTest1&lt;T extends Foo & Foo2&gt;</A></STRONG></CODE>"
D
duke 已提交
337 338
           },
           {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html",
339 340 341 342
                    "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                    "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                    "</A> with type parameters of type <A HREF=\"../../pkg2/Foo2.html\" " +
                    "title=\"interface in pkg2\">Foo2</A></CAPTION>"
D
duke 已提交
343 344
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html",
345
               "<TD><CODE><STRONG>ClassUseTest1.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest1.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
346 347 348 349
            },

            //ClassUseTest2: <T extends ParamTest<Foo3>>
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
350 351 352 353
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" " +
                     "title=\"class in pkg2\">ParamTest</A></CAPTION>"
D
duke 已提交
354 355
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
356
              "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html\" title=\"class in pkg2\">ClassUseTest2&lt;T extends ParamTest&lt;<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>&gt;&gt;</A></STRONG></CODE>"
D
duke 已提交
357 358
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
359 360 361 362
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" " +
                     "title=\"class in pkg2\">ParamTest</A></CAPTION>"
D
duke 已提交
363 364
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
365
              "<TD><CODE><STRONG>ClassUseTest2.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
366 367
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
368 369 370 371
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Fields in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> declared as <A HREF=\"../../pkg2/ParamTest.html\" " +
                     "title=\"class in pkg2\">ParamTest</A></CAPTION>"
D
duke 已提交
372 373 374 375 376
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
              "<A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A>&lt;<A HREF=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo</A>&gt;</CODE></FONT></TD>"
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
377 378 379 380
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/ParamTest.html\" " +
                     "title=\"class in pkg2\">ParamTest</A></CAPTION>"
D
duke 已提交
381 382 383 384 385 386
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
              "&lt;T extends <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A>&lt;<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>&gt;&gt;"
            },

            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
387 388 389 390
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo3.html\" " +
                     "title=\"class in pkg2\">Foo3</A></CAPTION>"
D
duke 已提交
391 392
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
393
                "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html\" title=\"class in pkg2\">ClassUseTest2&lt;T extends ParamTest&lt;<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>&gt;&gt;</A></STRONG></CODE>"
D
duke 已提交
394 395
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
396 397 398 399
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo3.html\" " +
                     "title=\"class in pkg2\">Foo3</A></CAPTION>"
D
duke 已提交
400 401
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
402
                "<TD><CODE><STRONG>ClassUseTest2.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest2.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
403 404
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
405 406 407 408 409
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> that return types with arguments of type " +
                     "<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" +
                     "Foo3</A></CAPTION>"
D
duke 已提交
410 411 412 413 414 415 416
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
                "&lt;T extends <A HREF=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">ParamTest</A>&lt;<A HREF=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3</A>&gt;&gt;"
            },

            //ClassUseTest3: <T extends ParamTest2<List<? extends Foo4>>>
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
417 418 419 420 421
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type " +
                     "<A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
                     "ParamTest2</A></CAPTION>"
D
duke 已提交
422 423
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
424
                "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html\" title=\"class in pkg2\">ClassUseTest3&lt;T extends ParamTest2&lt;java.util.List&lt;? extends Foo4&gt;&gt;&gt;</A></STRONG></CODE>"
D
duke 已提交
425 426
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
427 428 429 430 431
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type " +
                     "<A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
                     "ParamTest2</A></CAPTION>"
D
duke 已提交
432 433
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
434
                "<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
435 436
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
437 438 439 440 441
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type " +
                     "<A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" +
                     "ParamTest2</A></CAPTION>"
D
duke 已提交
442 443 444 445 446 447
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
                "&lt;T extends <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A>&lt;java.util.List&lt;? extends <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>&gt;&gt;&gt;"
            },

            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
448 449 450 451 452
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Classes in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type " +
                     "<A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" +
                     "Foo4</A></CAPTION>"
D
duke 已提交
453 454
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
455
                "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html\" title=\"class in pkg2\">ClassUseTest3&lt;T extends ParamTest2&lt;java.util.List&lt;? extends Foo4&gt;&gt;&gt;</A></STRONG></CODE>"
D
duke 已提交
456 457
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
458 459 460 461
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type parameters of type <A HREF=\"../../pkg2/Foo4.html\" " +
                     "title=\"class in pkg2\">Foo4</A></CAPTION>"
D
duke 已提交
462 463
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
464
                "<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#method(T)\">method</A></STRONG>(T&nbsp;t)</CODE>"
D
duke 已提交
465 466
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
467 468 469 470 471
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Methods in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> that return types with arguments of type " +
                     "<A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" +
                     "Foo4</A></CAPTION>"
D
duke 已提交
472 473 474 475 476 477 478
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
                "&lt;T extends <A HREF=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">ParamTest2</A>&lt;java.util.List&lt;? extends <A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">Foo4</A>&gt;&gt;&gt;"
            },

            //Type parameters in constructor and method args
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Method parameters in <A HREF=\"../../pkg2/package-summary.html\">pkg2" +
                     "</A> with type arguments of type <A HREF=\"../../pkg2/Foo4.html\" " +
                     "title=\"class in pkg2\">Foo4</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Modifier and Type" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Method and Description</TH>" + NL +
                     "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL +
                     "<CODE>&nbsp;void</CODE></FONT></TD>" + NL +
                     "<TD><CODE><STRONG>ClassUseTest3.</STRONG><STRONG>" +
                     "<A HREF=\"../../pkg2/ClassUseTest3.html#method(java.util.Set)\">" +
                     "method</A></STRONG>(java.util.Set&lt;<A HREF=\"../../pkg2/Foo4.html\" " +
                     "title=\"class in pkg2\">Foo4</A>&gt;&nbsp;p)</CODE>"
D
duke 已提交
495 496
            },
            {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
497 498 499 500 501 502 503 504 505 506 507 508
                     "<CAPTION CLASS=\"TableSubCaption\">" + NL +
                     "Constructor parameters in <A HREF=\"../../pkg2/package-summary.html\">" +
                     "pkg2</A> with type arguments of type <A HREF=\"../../pkg2/Foo4.html\" " +
                     "title=\"class in pkg2\">Foo4</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Constructor and Description" +
                     "</TH>" + NL + "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD><CODE><STRONG><A HREF=\"../../pkg2/ClassUseTest3.html#ClassUseTest3" +
                     "(java.util.Set)\">ClassUseTest3</A></STRONG>(java.util.Set&lt;" +
                     "<A HREF=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" +
                     "Foo4</A>&gt;&nbsp;p)</CODE>"
D
duke 已提交
509 510 511 512 513 514
            },

            //=================================
            // Annotatation Type Usage
            //=================================
            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
515 516 517 518 519 520 521 522 523 524
                     "Packages with annotations of type " +
                     "<A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Package" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Description</TH>" + NL + "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD><A HREF=\"../../pkg/package-summary.html\"><STRONG>pkg" +
                     "</STRONG></A></TD>"
D
duke 已提交
525 526 527
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
528 529 530 531 532 533 534 535 536 537 538 539 540
                     "Classes in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Modifier and Type" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Class and Description</TH>" + NL +
                     "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL +
                     "<CODE>&nbsp;class</CODE></FONT></TD>" + NL +
                     "<TD><CODE><STRONG><A HREF=\"../../pkg/AnnotationTypeUsage.html\" " +
                     "title=\"class in pkg\">AnnotationTypeUsage</A></STRONG></CODE>"
D
duke 已提交
541 542 543
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
544 545 546 547 548 549 550 551 552 553 554 555 556 557
                     "Fields in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Modifier and Type" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Field and Description</TH>" + NL +
                     "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL +
                     "<CODE>&nbsp;int</CODE></FONT></TD>" + NL +
                     "<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG>" +
                     "<A HREF=\"../../pkg/AnnotationTypeUsage.html#field\">field" +
                     "</A></STRONG></CODE>"
D
duke 已提交
558 559 560
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
561 562 563 564 565 566 567 568 569 570 571 572 573 574
                     "Methods in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Modifier and Type" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Method and Description</TH>" + NL +
                     "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL +
                     "<CODE>&nbsp;void</CODE></FONT></TD>" + NL +
                     "<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG>" +
                     "<A HREF=\"../../pkg/AnnotationTypeUsage.html#method()\">" +
                     "method</A></STRONG>()</CODE>"
D
duke 已提交
575 576 577
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592
                     "Method parameters in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Modifier and Type" +
                     "</TH>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Method and Description</TH>" + NL +
                     "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD ALIGN=\"right\" VALIGN=\"top\" WIDTH=\"1%\"><FONT SIZE=\"-1\">" + NL +
                     "<CODE>&nbsp;void</CODE></FONT></TD>" + NL +
                     "<TD><CODE><STRONG>AnnotationTypeUsage.</STRONG><STRONG>" +
                     "<A HREF=\"../../pkg/AnnotationTypeUsage.html#methodWithParams" +
                     "(int, int)\">methodWithParams</A></STRONG>(int&nbsp;documented," + NL +
                     "                 int&nbsp;undocmented)</CODE>"
D
duke 已提交
593 594 595
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
596 597 598 599 600 601 602 603 604 605
                     "Constructors in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Constructor and Description" +
                     "</TH>" + NL + "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD><CODE><STRONG><A HREF=\"../../pkg/" +
                     "AnnotationTypeUsage.html#AnnotationTypeUsage()\">" +
                     "AnnotationTypeUsage</A></STRONG>()</CODE>"
D
duke 已提交
606 607 608
            },

            {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
609 610 611 612 613 614 615 616 617 618 619
                     "Constructor parameters in <A HREF=\"../../pkg/package-summary.html\">pkg" +
                     "</A> with annotations of type <A HREF=\"../../pkg/AnnotationType.html\" " +
                     "title=\"annotation in pkg\">AnnotationType</A></CAPTION>" + NL +
                     "<TR>" + NL + "<TH CLASS=\"TableHeader\" SCOPE=\"col\"" +
                     " NOWRAP>Constructor and Description" +
                     "</TH>" + NL + "</TR>" + NL +
                     "<TR BGCOLOR=\"white\" CLASS=\"TableRowColor\">" + NL +
                     "<TD><CODE><STRONG><A HREF=\"../../pkg/" +
                     "AnnotationTypeUsage.html#AnnotationTypeUsage(int, int)\">" +
                     "AnnotationTypeUsage</A></STRONG>(int&nbsp;documented," + NL +
                     "                    int&nbsp;undocmented)</CODE>"
D
duke 已提交
620 621 622 623 624 625
            },

            //=================================
            // TYPE PARAMETER IN INDEX
            //=================================
            {BUG_ID + FS + "index-all.html",
626
                "<A HREF=\"./pkg2/Foo.html#method(java.util.Vector)\"><STRONG>method(Vector&lt;Object&gt;)</STRONG></A>"
D
duke 已提交
627 628 629 630 631
            },
            //=================================
            // TYPE PARAMETER IN INDEX
            //=================================
            {BUG_ID + FS + "index-all.html",
632
                "<A HREF=\"./pkg2/Foo.html#method(java.util.Vector)\"><STRONG>method(Vector&lt;Object&gt;)</STRONG></A>"
D
duke 已提交
633 634 635 636 637 638 639
            },
        };
    private static final String[][] NEGATED_TEST = {
        //=================================
        // ENUM TESTING
        //=================================
        //NO constructor section
640
        {BUG_ID + FS + "pkg" + FS + "Coin.html", "<STRONG>Constructor Summary</STRONG>"},
D
duke 已提交
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
        //=================================
        // TYPE PARAMETER TESTING
        //=================================
        //No type parameters in class frame.
        {BUG_ID + FS + "allclasses-frame.html",
            "<A HREF=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" +
                    "TypeParameters</A>&lt;<A HREF=\"../pkg/TypeParameters.html\" " +
                    "title=\"type parameter in TypeParameters\">E</A>&gt;"
        },

        //==============================================================
        // ANNOTATION TYPE USAGE TESTING (When @Documented is omitted)
        //===============================================================

        //CLASS
        {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
            "<FONT SIZE=\"-1\">" + NL +
            "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Class Annotation\"," + NL +
            "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
660
            "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG></DT><DT>extends java.lang.Object</DT></DL>"},
D
duke 已提交
661 662 663 664 665 666

        //FIELD
        {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
            "<FONT SIZE=\"-1\">" + NL +
            "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Field Annotation\"," + NL +
            "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
667
            "</FONT>public int <STRONG>field</STRONG>"},
D
duke 已提交
668 669 670 671 672 673

        //CONSTRUCTOR
        {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
            "<FONT SIZE=\"-1\">" + NL +
            "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Constructor Annotation\"," + NL +
            "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
674
            "</FONT>public <STRONG>AnnotationTypeUsage</STRONG>()"},
D
duke 已提交
675 676 677 678 679 680

        //METHOD
        {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
            "<FONT SIZE=\"-1\">" + NL +
            "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Method Annotation\"," + NL +
            "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
681
            "</FONT>public void <STRONG>method</STRONG>()"},
D
duke 已提交
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715

        //=================================
        // Make sure annotation types do not
        // trigger this warning.
        //=================================
        {WARNING_OUTPUT,
            "Internal error: package sets don't match: [] with: null"
        },
    };

    /**
     * The entry point of the test.
     * @param args the array of command line arguments.
     */
    public static void main(String[] args) {
        TestNewLanguageFeatures tester = new TestNewLanguageFeatures();
        run(tester, ARGS, TEST, NEGATED_TEST);
        tester.printSummary();
    }

    /**
     * {@inheritDoc}
     */
    public String getBugId() {
        return BUG_ID;
    }

    /**
     * {@inheritDoc}
     */
    public String getBugName() {
        return getClass().getName();
    }
}