langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java
changeset 2216 b124d5c924eb
parent 1787 1aa079321cd2
child 2320 5b8c377175f4
equal deleted inserted replaced
2215:dd8663d971d1 2216:b124d5c924eb
    52             //=================================
    52             //=================================
    53             //Make sure enum header is correct.
    53             //Make sure enum header is correct.
    54             {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</H2>"},
    54             {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin</H2>"},
    55             //Make sure enum signature is correct.
    55             //Make sure enum signature is correct.
    56             {BUG_ID + FS + "pkg" + FS + "Coin.html", "public enum "+
    56             {BUG_ID + FS + "pkg" + FS + "Coin.html", "public enum "+
    57                 "<STRONG>Coin</STRONG><DT>extends java.lang.Enum&lt;" +
    57                 "<STRONG>Coin</STRONG>" + NL + "extends java.lang.Enum&lt;" +
    58                 "<A HREF=\"../pkg/Coin.html\" title=\"enum in pkg\">Coin</A>&gt;"
    58                 "<A HREF=\"../pkg/Coin.html\" title=\"enum in pkg\">Coin</A>&gt;"
    59             },
    59             },
    60             //Check for enum constant section
    60             //Check for enum constant section
    61             {BUG_ID + FS + "pkg" + FS + "Coin.html", "<STRONG>Enum Constant Summary</STRONG>"},
    61             {BUG_ID + FS + "pkg" + FS + "Coin.html", "<STRONG>Enum Constant Summary</STRONG>"},
    62             //Detail for enum constant
    62             //Detail for enum constant
    77             //Make sure the header is correct.
    77             //Make sure the header is correct.
    78             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    78             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    79                 "Class TypeParameters&lt;E&gt;</H2>"},
    79                 "Class TypeParameters&lt;E&gt;</H2>"},
    80             //Check class type parameters section.
    80             //Check class type parameters section.
    81             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    81             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    82                 "<DT><STRONG>Type Parameters:</STRONG><DD><CODE>E</CODE> - " +
    82                 "<DT><STRONG>Type Parameters:</STRONG></DT><DD><CODE>E</CODE> - " +
    83                 "the type parameter for this class."},
    83                 "the type parameter for this class."},
    84             //Type parameters in @see/@link
    84             //Type parameters in @see/@link
    85             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    85             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    86                 "<DT><STRONG>See Also:</STRONG><DD><A HREF=\"../pkg/TypeParameters.html\" " +
    86                 "<DT><STRONG>See Also:</STRONG></DT><DD><A HREF=\"../pkg/TypeParameters.html\" " +
    87                     "title=\"class in pkg\"><CODE>TypeParameters</CODE></A></DL>"},
    87                     "title=\"class in pkg\"><CODE>TypeParameters</CODE></A></DD></DL>"},
    88             //Method that uses class type parameter.
    88             //Method that uses class type parameter.
    89             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    89             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    90                 "(<A HREF=\"../pkg/TypeParameters.html\" title=\"type " +
    90                 "(<A HREF=\"../pkg/TypeParameters.html\" title=\"type " +
    91                     "parameter in TypeParameters\">E</A>&nbsp;param)"},
    91                     "parameter in TypeParameters\">E</A>&nbsp;param)"},
    92             //Method type parameter section.
    92             //Method type parameter section.
    93             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    93             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    94                 "<STRONG>Type Parameters:</STRONG><DD><CODE>T</CODE> - This is the first " +
    94                 "<STRONG>Type Parameters:</STRONG></DT><DD><CODE>T</CODE> - This is the first " +
    95                     "type parameter.<DD><CODE>V</CODE> - This is the second type " +
    95                     "type parameter.</DD><DD><CODE>V</CODE> - This is the second type " +
    96                     "parameter."},
    96                     "parameter."},
    97             //Signature of method with type parameters
    97             //Signature of method with type parameters
    98             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    98             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
    99                 "public &lt;T extends java.util.List,V&gt; " +
    99                 "public &lt;T extends java.util.List,V&gt; " +
   100                     "java.lang.String[] <STRONG>methodThatHasTypeParameters</STRONG>"},
   100                     "java.lang.String[] <STRONG>methodThatHasTypeParameters</STRONG>"},
   115                 "\"<BadMethodTypeParam>\" is not a type parameter name."},
   115                 "\"<BadMethodTypeParam>\" is not a type parameter name."},
   116 
   116 
   117             //Signature of subclass that has type parameters.
   117             //Signature of subclass that has type parameters.
   118             {BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html",
   118             {BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html",
   119                 "public class <STRONG>TypeParameterSubClass&lt;T extends java.lang.String&gt;" +
   119                 "public class <STRONG>TypeParameterSubClass&lt;T extends java.lang.String&gt;" +
   120                 "</STRONG><DT>extends <A HREF=\"../pkg/TypeParameterSuperClass.html\" " +
   120                 "</STRONG>" + NL + "extends <A HREF=\"../pkg/TypeParameterSuperClass.html\" " +
   121                 "title=\"class in pkg\">TypeParameterSuperClass</A>&lt;T&gt;"},
   121                 "title=\"class in pkg\">TypeParameterSuperClass</A>&lt;T&gt;"},
   122 
   122 
   123             //Interface generic parameter substitution
   123             //Interface generic parameter substitution
   124             //Signature of subclass that has type parameters.
   124             //Signature of subclass that has type parameters.
   125             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
   125             {BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
   126                 "<STRONG>All Implemented Interfaces:</STRONG> <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>"},
   126                 "<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>"},
   127             {BUG_ID + FS + "pkg" + FS + "SuperInterface.html",
   127             {BUG_ID + FS + "pkg" + FS + "SuperInterface.html",
   128                 "<STRONG>All Known Subinterfaces:</STRONG> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A>&lt;V&gt;</DD>"},
   128                 "<STRONG>All Known Subinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SubInterface.html\" title=\"interface in pkg\">SubInterface</A>&lt;V&gt;</DD>"},
   129             {BUG_ID + FS + "pkg" + FS + "SubInterface.html",
   129             {BUG_ID + FS + "pkg" + FS + "SubInterface.html",
   130                 "<STRONG>All Superinterfaces:</STRONG> <DD><A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A>&lt;V&gt;</DD>"},
   130                 "<STRONG>All Superinterfaces:</STRONG></DT> <DD><A HREF=\"../pkg/SuperInterface.html\" title=\"interface in pkg\">SuperInterface</A>&lt;V&gt;</DD>"},
   131 
   131 
   132             //=================================
   132             //=================================
   133             // VAR ARG TESTING
   133             // VAR ARG TESTING
   134             //=================================
   134             //=================================
   135             {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int...&nbsp;i)"},
   135             {BUG_ID + FS + "pkg" + FS + "VarArgs.html", "(int...&nbsp;i)"},
   164             //Make sure element detail heading is correct
   164             //Make sure element detail heading is correct
   165             {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
   165             {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
   166                 "Element Detail"},
   166                 "Element Detail"},
   167             //Make sure default annotation type value is printed when necessary.
   167             //Make sure default annotation type value is printed when necessary.
   168             {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
   168             {BUG_ID + FS + "pkg" + FS + "AnnotationType.html",
   169                 "<STRONG>Default:</STRONG><DD>\"unknown\"</DD>"},
   169                 "<STRONG>Default:</STRONG></DT><DD>\"unknown\"</DD>"},
   170 
   170 
   171             //=================================
   171             //=================================
   172             // ANNOTATION TYPE USAGE TESTING
   172             // ANNOTATION TYPE USAGE TESTING
   173             //=================================
   173             //=================================
   174 
   174 
   180             //CLASS
   180             //CLASS
   181             {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   181             {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   182                 "<FONT SIZE=\"-1\">" +
   182                 "<FONT SIZE=\"-1\">" +
   183                 "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Class Annotation\","+NL +
   183                 "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Class Annotation\","+NL +
   184                 "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
   184                 "                <A HREF=\"../pkg/AnnotationType.html#required()\">required</A>=1994)"+NL +
   185                 "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG><DT>extends java.lang.Object</DL>"},
   185                 "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG>" + NL +
       
   186                 "extends java.lang.Object"},
   186 
   187 
   187             //FIELD
   188             //FIELD
   188             {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   189             {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   189                 "<FONT SIZE=\"-1\">" +
   190                 "<FONT SIZE=\"-1\">" +
   190                 "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Field Annotation\","+NL +
   191                 "<A HREF=\"../pkg/AnnotationType.html\" title=\"annotation in pkg\">@AnnotationType</A>(<A HREF=\"../pkg/AnnotationType.html#optional()\">optional</A>=\"Field Annotation\","+NL +
   268 
   269 
   269             //Make sure that annotations are surrounded by <pre> and </pre>
   270             //Make sure that annotations are surrounded by <pre> and </pre>
   270             {BUG_ID + FS + "pkg1" + FS + "B.html",
   271             {BUG_ID + FS + "pkg1" + FS + "B.html",
   271                 "<PRE><FONT SIZE=\"-1\"><A HREF=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</A>"},
   272                 "<PRE><FONT SIZE=\"-1\"><A HREF=\"../pkg1/A.html\" title=\"annotation in pkg1\">@A</A>"},
   272             {BUG_ID + FS + "pkg1" + FS + "B.html",
   273             {BUG_ID + FS + "pkg1" + FS + "B.html",
   273                 "</FONT>public interface <STRONG>B</STRONG></DL>" + NL +
   274                 "</FONT>public interface <STRONG>B</STRONG></PRE>"},
   274                     "</PRE>"},
       
   275 
   275 
   276 
   276 
   277             //==============================================================
   277             //==============================================================
   278             // Handle multiple bounds.
   278             // Handle multiple bounds.
   279             //==============================================================
   279             //==============================================================
   523         //CLASS
   523         //CLASS
   524         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   524         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   525             "<FONT SIZE=\"-1\">" + NL +
   525             "<FONT SIZE=\"-1\">" + NL +
   526             "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Class Annotation\"," + NL +
   526             "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Class Annotation\"," + NL +
   527             "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
   527             "                <A HREF=\"../pkg/AnnotationType.html#required\">required</A>=1994)" + NL +
   528             "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG><DT>extends java.lang.Object</DL>"},
   528             "</FONT>public class <STRONG>AnnotationTypeUsage</STRONG></DT><DT>extends java.lang.Object</DT></DL>"},
   529 
   529 
   530         //FIELD
   530         //FIELD
   531         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   531         {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
   532             "<FONT SIZE=\"-1\">" + NL +
   532             "<FONT SIZE=\"-1\">" + NL +
   533             "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Field Annotation\"," + NL +
   533             "<A HREF=\"../pkg/AnnotationTypeUndocumented.html\" title=\"annotation in pkg\">@AnnotationTypeUndocumented</A>(<A HREF=\"../pkg/AnnotationType.html#optional\">optional</A>=\"Field Annotation\"," + NL +