alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/Foo.html\" title=\"class in " + "pkg2\">Foo</a> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "<td class=\"colLast\">ClassUseTest1." + "</span>" + "(T t)</code> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "<caption>Fields in with type parameters of " + "type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + "Foo</a> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "td class=\"colFirst\"><code>" + "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\"" + ">Foo</a>>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<caption>Fields in declared as  " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<td class=\"colFirst\"><" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + "in pkg2\">Foo2</a> " + "</span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" + "</a> & " + "Foo2</a>> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/Foo2.html\" title=\"interface " + "in pkg2\">Foo2</a> " + "</span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html", "<td class=\"colLast\">" + "ClassUseTest1.</span>" + "(T t)</code> " }, //ClassUseTest2: <T extends ParamTest {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + "in pkg2\">ParamTest</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" + "ParamTest</a><" + "Foo3</a>>> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + "in pkg2\">ParamTest</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<td class=\"colLast\">ClassUseTest2." + "</span>" + "(T t)</code> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<caption>Fields in declared as  " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<td class=\"colFirst\">" + "<<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + "Foo</a>>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/ParamTest.html\" title=\"class " + "in pkg2\">ParamTest</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html", "<td class=\"colFirst\"><T extends >>
" + "<<a href=\"../../pkg2/Foo3.html\" title=\"class in " + "pkg2\">Foo3</a>>
" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">" + "Foo3</a> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/ParamTest.html\" title=\"class in pkg2\">" + "ParamTest</a><" + "Foo3</a>>> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/Foo3.html\" title=\"class in " + "pkg2\">Foo3</a> " + "</span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<td class=\"colLast\">ClassUseTest2." + "</span>" + "(T t)</code> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<caption>Methods in that return types with " + "arguments of type <a href=\"../../pkg2/Foo3.html\" title" + "=\"class in pkg2\">Foo3</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html", "<td class=\"colFirst\"><T extends <" + "<a href=\"../../pkg2/Foo3.html\" title=\"class in pkg2\">Foo3" + "</a>>>
<>
" }, //ClassUseTest3: <T extends ParamTest2> {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + "in pkg2\">ParamTest2</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + "ParamTest2</a><java.util.List<? extends " + "<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" + "Foo4</a>>>> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/ParamTest2.html\" title=\"class " + "in pkg2\">ParamTest2</a>" + " </span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "<td class=\"colLast\">ClassUseTest3" + ".</span>(T t) " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html", "<td class=\"colFirst\"><T extends >" + ">><br><java.util.List" + "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + "class in pkg2\">Foo4</a>>>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + "pkg2\">Foo4</a> " + "</span>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/ParamTest2.html\" title=\"class in pkg2\">" + "ParamTest2</a><java.util.List<? extends " + "<a href=\"../../pkg2/Foo4.html\" title=\"class in pkg2\">" + "Foo4</a>>>> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<caption>Methods in with type parameters of " + "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + "pkg2\">Foo4</a> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<td class=\"colLast\">ClassUseTest3." + "</span>(T t)" + " </td>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<caption>Methods in that return types with " + "arguments of type <a href=\"../../pkg2/Foo4.html\" " + "title=\"class in pkg2\">Foo4</a>" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<td class=\"colFirst\"><T extends >" + ">><br><java.util.List" + "<? extends <a href=\"../../pkg2/Foo4.html\" title=\"" + "class in pkg2\">Foo4</a>>>" }, //Type parameters in constructor and method args {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<caption>Method parameters in with type arguments of " + "type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + "pkg2\">Foo4</a> " + "</span>" + NL + "
" + NL + "<th class=\"colFirst\" scope=\"col\">Modifier and Type" + NL + "<th class=\"colLast\" scope=\"col\">Method and Description" + NL + "</tr>" + NL + "" + NL + "" + NL + "<td class=\"colFirst\">void" + NL + "<td class=\"colLast\">ClassUseTest3." + "</span>(java." + "util.Set<<a href=\"../../pkg2/Foo4.html\" title=\"" + "class in pkg2\">Foo4</a>> p) " + NL + "</tr>" + NL + "" }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html", "<caption>Constructor parameters in with type arguments " + "of type <a href=\"../../pkg2/Foo4.html\" title=\"class in " + "pkg2\">Foo4</a> " + "</span>" }, //================================= // Annotatation Type Usage //================================= {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Packages with annotations of type  " + "</span>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Classes in with annotations of type " + "<a href=\"../../pkg/AnnotationType.html\" title=\"" + "annotation in pkg\">AnnotationType</a>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Fields in with annotations of type " + "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + "in pkg\">AnnotationType</a>" + " </span>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Methods in with annotations of type " + "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + "in pkg\">AnnotationType</a>" + " </span>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Method parameters in with annotations of type " + "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + "in pkg\">AnnotationType</a>" + " </span>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Constructors in with annotations of type " + "<a href=\"../../pkg/AnnotationType.html\" title=\"annotation " + "in pkg\">AnnotationType</a>" + " </span>" }, {BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html", "<caption>Constructor parameters in with annotations of " + "type <a href=\"../../pkg/AnnotationType.html\" title=\"" + "annotation in pkg\">AnnotationType</a>" }, //================================= // TYPE PARAMETER IN INDEX //================================= {BUG_ID + FS + "index-all.html", "<span class=\"memberNameLink\">" + "method(Vector<Object>)</a>" }, //================================= // TYPE PARAMETER IN INDEX //================================= {BUG_ID + FS + "index-all.html", "<span class=\"memberNameLink\">" + "method(Vector<Object>)</a>" }, }; private static final String[][] NEGATED_TEST = { //================================= // ENUM TESTING //================================= //NO constructor section {BUG_ID + FS + "pkg" + FS + "Coin.html", "<h3>Constructor Summary"}, //================================= // 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><>" }, //============================================================== // ANNOTATION TYPE USAGE TESTING (When @Documented is omitted) //=============================================================== //CLASS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented(optional=\"Class Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required\">required=1994)" + NL + "public class <span class=\"typeNameLabel\">AnnotationTypeUsage
extends java.lang.Object
"}, //FIELD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented(optional=\"Field Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required\">required=1994)" + NL + "public int <span class=\"memberNameLabel\">field"}, //CONSTRUCTOR {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented(optional=\"Constructor Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required\">required=1994)" + NL + "public <span class=\"typeNameLabel\">AnnotationTypeUsage()"}, //METHOD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<a href=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented(optional=\"Method Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required\">required=1994)" + NL + "public void <span class=\"memberNameLabel\">method()"}, //================================= // 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(); } }

Other Java examples (source code examples)

Here is a short list of links related to this Java TestNewLanguageFeatures.java source code file:

Java example source code file (TestNewLanguageFeatures.java)

This example Java source code file (TestNewLanguageFeatures.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

annotationtype, bug_id, classusetest3, coin, foo3, foo4, paramtest, paramtest2, string, typeparameters

The TestNewLanguageFeatures.java Java example source code

/*
 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

/*
 * @test
 * @bug      4789689 4905985 4927164 4827184 4993906 5004549 7025314 7010344 8025633 8026567
 * @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 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[] {
        "-Xdoclint:none", "-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", "<pre>public enum " +
                     "<span class=\"typeNameLabel\">Coin" + NL +
                     "extends java.lang.Enum<<a href=\"../pkg/Coin.html\" " +
                     "title=\"enum in pkg\">Coin</a>>
" }, //Check for enum constant section {BUG_ID + FS + "pkg" + FS + "Coin.html", "<caption>Enum Constants" + "</span> "}, //Detail for enum constant {BUG_ID + FS + "pkg" + FS + "Coin.html", "<span class=\"memberNameLink\">Dime"}, //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<E></h2>"}, //Check class type parameters section. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", "<dt>Type Parameters:" + NL + "
E - " + "the type parameter for this class."}, //Type parameters in @see/@link {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", "<dl>" + NL + "
See Also:
" + NL + "
" + "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + "<code>TypeParameters
" + NL + ""}, //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> param)"}, //Method type parameter section. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", "<span class=\"paramLabel\">Type Parameters:" + NL + "
T - This is the first " + "type parameter.</dd>" + NL + "
V - This is the second type " + "parameter."}, //Signature of method with type parameters {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", "public <T extends java.util.List,V> " + "java.lang.String[] methodThatHasTypeParameters"}, //Wildcard testing. {BUG_ID + FS + "pkg" + FS + "Wildcards.html", "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + "TypeParameters</a><? super java.lang.String> a"}, {BUG_ID + FS + "pkg" + FS + "Wildcards.html", "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + "TypeParameters</a><? extends java.lang.StringBuffer> b"}, {BUG_ID + FS + "pkg" + FS + "Wildcards.html", "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + "TypeParameters</a> 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", "<pre>public class TypeParameterSubClass<T extends " + "java.lang.String></span>" + NL + "extends " + "<a href=\"../pkg/TypeParameterSuperClass.html\" title=\"class in pkg\">" + "TypeParameterSuperClass</a><T>"}, //Interface generic parameter substitution //Signature of subclass that has type parameters. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", "<dl>" + NL + "
All Implemented Interfaces:
" + NL + "<dd>" + "SubInterface</a><E>, <E>" + NL + "</dl>"}, {BUG_ID + FS + "pkg" + FS + "SuperInterface.html", "<dl>" + NL + "
All Known Subinterfaces:
" + NL + "<dd>
" + "SubInterface</a><V>" + NL + ""}, {BUG_ID + FS + "pkg" + FS + "SubInterface.html", "<dl>" + NL + "
All Superinterfaces:
" + NL + "<dd>
" + "SuperInterface</a><V>" + NL + ""}, //================================= // VAR ARG TESTING //================================= {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int... i)"}, {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int[][]... i)"}, {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "-int:A...-"}, {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "<a href=\"../pkg/TypeParameters.html\" title=\"class in pkg\">" + "TypeParameters</a>... t"}, //================================= // ANNOTATION TYPE TESTING //================================= //Make sure the summary links are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "<li>Summary: " + NL + "
  • Field | 
  • " + NL + "<li>
    " + "Required</a> | " + NL + "
  • " + "<a href=\"#annotation.type.optional.element.summary\">Optional
  • "}, //Make sure the detail links are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "<li>Detail: " + NL + "
  • Field | 
  • " + NL + "<li>Element"}, //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", "public @interface <span class=\"memberNameLabel\">AnnotationType"}, //Make sure member summary headings are correct. {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "<h3>Required Element Summary"}, {BUG_ID + FS + "pkg" + FS + "AnnotationType.html", "<h3>Optional Element Summary"}, //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", "<dl>" + NL + "
    Default:
    " + NL + "
    \"unknown\"
    " + NL + "</dl>"}, //================================= // ANNOTATION TYPE USAGE TESTING //================================= //PACKAGE {BUG_ID + FS + "pkg" + FS + "package-summary.html", "<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType(optional=\"Package Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required--\">required=1994)"}, //CLASS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>(" + "<a href=\"../pkg/AnnotationType.html#optional--\">optional" + "=\"Class Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required--\">" + "required</a>=1994)" + NL + "public class " + "AnnotationTypeUsage</span>" + NL + "extends java.lang.Object"}, //FIELD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>(" + "<a href=\"../pkg/AnnotationType.html#optional--\">optional" + "=\"Field Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required--\">" + "required</a>=1994)" + NL + "public int field"}, //CONSTRUCTOR {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>(" + "<a href=\"../pkg/AnnotationType.html#optional--\">optional" + "=\"Constructor Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required--\">" + "required</a>=1994)" + NL + "public AnnotationTypeUsage()"}, //METHOD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>(" + "<a href=\"../pkg/AnnotationType.html#optional--\">optional" + "=\"Method Annotation\"," + NL + " <a href=\"../pkg/AnnotationType.html#required--\">" + "required</a>=1994)" + NL + "public void method()"}, //METHOD PARAMS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>public void methodWithParams(" + "<a href=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">" + "@AnnotationType</a>(" + "optional</a>=\"Parameter Annotation\",=1994)" + NL + " int documented," + NL + " int undocmented)</pre>"}, //CONSTRUCTOR PARAMS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", "<pre>public AnnotationTypeUsage(" + "optional</a>=\"Constructor Param Annotation\",=1994)" + NL + " int documented," + NL + " int undocmented)</pre>"}, //================================= // ANNOTATION TYPE USAGE TESTING (All Different Types). //================================= //Integer {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#d--\">d=3.14,"}, //Double {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#d--\">d=3.14,"}, //Boolean {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#b--\">b=true,"}, //String {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#s--\">s=\"sigh\","}, //Class {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#c--\">c=Foo.class,"}, //Bounded Class {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#w--\">w=TypeParameterSubClass.class,"}, //Enum {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#e--\">e=Penny,"}, //Annotation Type {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#a--\">a=@AnnotationType(optional=\"foo\",required=1994),"}, //String Array {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#sa--\">sa={\"up\",\"down\"},"}, //Primitive {BUG_ID + FS + "pkg1" + FS + "B.html", "<a href=\"../pkg1/A.html#primitiveClassTest--\">primitiveClassTest=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 {BUG_ID + FS + "pkg1" + FS + "B.html", "<pre>@A"}, {BUG_ID + FS + "pkg1" + FS + "B.html", "public interface <span class=\"typeNameLabel\">B"}, //============================================================== // Handle multiple bounds. //============================================================== {BUG_ID + FS + "pkg" + FS + "MultiTypeParameters.html", "public <T extends java.lang.Number & java.lang.Runnable> T foo(T t)"}, //============================================================== // Test Class-Use Documenation for Type Parameters. //============================================================== //ClassUseTest1: <T extends Foo & Foo2> {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "<caption>Classes in with type parameters of " + "type <a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">" + "Foo</a> " }, {BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html", "<td class=\"colLast\"><T extends " + "<a href=\"../../pkg2/Foo.html\" title=\"class in pkg2\">Foo" + "</a> & " + "Foo2</a>> 
    ... this post is sponsored by my books ...

    #1 New Release!

    FP Best Seller

     

     

    Copyright 1998-2021 Alvin Alexander, alvinalexander.com
    All Rights Reserved.

    A percentage of advertising revenue from
    pages under the /java/jwarehouse URI on this website is
    paid back to open source projects.