diff -r bcbc86cc5b31 -r 90af8d87741f test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java --- a/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Tue Nov 30 09:38:48 2010 -0800 +++ b/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Wed Dec 01 11:02:38 2010 -0800 @@ -51,18 +51,18 @@ // ENUM TESTING //================================= //Make sure enum header is correct. - {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin"}, + {BUG_ID + FS + "pkg" + FS + "Coin.html", "Enum Coin"}, //Make sure enum signature is correct. - {BUG_ID + FS + "pkg" + FS + "Coin.html", "public enum "+ - "Coin" + NL + "extends java.lang.Enum<" + - "Coin>" + {BUG_ID + FS + "pkg" + FS + "Coin.html", "
public enum Coin" + NL + + "extends java.lang.Enum<Coin>" }, //Check for enum constant section - {BUG_ID + FS + "pkg" + FS + "Coin.html", "
E
- " +
+ "E
- " +
"the type parameter for this class."},
//Type parameters in @see/@link
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
- "TypeParameters
TypeParameters
T
- This is the first " +
- "type parameter.V
- This is the second type " +
+ "Type Parameters:T
- This is the first " +
+ "type parameter.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"},
+ "public <T extends java.util.List,V> " +
+ "java.lang.String[] methodThatHasTypeParameters"},
//Wildcard testing.
{BUG_ID + FS + "pkg" + FS + "Wildcards.html",
- "" +
- "TypeParameters<? super java.lang.String> a"},
+ "" +
+ "TypeParameters<? super java.lang.String> a"},
{BUG_ID + FS + "pkg" + FS + "Wildcards.html",
- "" +
- "TypeParameters<? extends java.lang.StringBuffer> b"},
+ "" +
+ "TypeParameters<? extends java.lang.StringBuffer> b"},
{BUG_ID + FS + "pkg" + FS + "Wildcards.html",
- "" +
- "TypeParameters c"},
+ "" +
+ "TypeParameters c"},
//Bad type parameter warnings.
{WARNING_OUTPUT, "warning - @param argument " +
"\"public class TypeParameterSubClass<T extends " + + "java.lang.String>" + NL + "extends " + + "" + + "TypeParameterSuperClass<T>"}, //Interface generic parameter substitution //Signature of subclass that has type parameters. {BUG_ID + FS + "pkg" + FS + "TypeParameters.html", - "All Implemented Interfaces:
@AnnotationType(" + + "optional" + + "=\"Class Annotation\"," + NL + + " " + + "required=1994)" + NL + "public class " + + "AnnotationTypeUsage" + NL + "extends java.lang.Object"}, //FIELD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", - "" + - "@AnnotationType(optional=\"Field Annotation\","+NL + - " required=1994)"+NL + - "public int field"}, + "
@AnnotationType(" + + "optional" + + "=\"Field Annotation\"," + NL + + " " + + "required=1994)" + NL + "public int field"}, //CONSTRUCTOR {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", - "" + - "@AnnotationType(optional=\"Constructor Annotation\","+NL + - " required=1994)"+NL + - "public AnnotationTypeUsage()"}, + "
@AnnotationType(" + + "optional" + + "=\"Constructor Annotation\"," + NL + + " " + + "required=1994)" + NL + "public AnnotationTypeUsage()"}, //METHOD {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", - "" + - "@AnnotationType(optional=\"Method Annotation\","+NL + - " required=1994)"+NL + - "public void method()"}, + "
@AnnotationType(" + + "optional" + + "=\"Method Annotation\"," + NL + + " " + + "required=1994)" + NL + "public void method()"}, //METHOD PARAMS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", - "
" + NL + - "public void methodWithParams(@AnnotationType(optional=\"Parameter Annotation\",required=1994)" + NL + - " int documented," + NL + - " int undocmented)"}, + "
public void methodWithParams(" + + "" + + "@AnnotationType(" + + "optional=\"Parameter Annotation\",required=1994)" + NL + + " int documented," + NL + + " int undocmented)"}, //CONSTRUCTOR PARAMS {BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html", - "
" + NL + - "public AnnotationTypeUsage(@AnnotationType(optional=\"Constructor Param Annotation\",required=1994)" + NL + - " int documented," + NL + - " int undocmented)"}, + "
public AnnotationTypeUsage(" + + "@AnnotationType(" + + "optional=\"Constructor Param Annotation\",required=1994)" + NL + + " int documented," + NL + + " int undocmented)"}, //================================= // ANNOTATION TYPE USAGE TESTING (All Different Types). @@ -229,59 +254,59 @@ //Integer {BUG_ID + FS + "pkg1" + FS + "B.html", - "d=3.14,"}, + "d=3.14,"}, //Double {BUG_ID + FS + "pkg1" + FS + "B.html", - "d=3.14,"}, + "d=3.14,"}, //Boolean {BUG_ID + FS + "pkg1" + FS + "B.html", - "b=true,"}, + "b=true,"}, //String {BUG_ID + FS + "pkg1" + FS + "B.html", - "s=\"sigh\","}, + "s=\"sigh\","}, //Class {BUG_ID + FS + "pkg1" + FS + "B.html", - "c=Foo.class,"}, + "c=Foo.class,"}, //Bounded Class {BUG_ID + FS + "pkg1" + FS + "B.html", - "w=TypeParameterSubClass.class,"}, + "w=TypeParameterSubClass.class,"}, //Enum {BUG_ID + FS + "pkg1" + FS + "B.html", - "e=Penny,"}, + "e=Penny,"}, //Annotation Type {BUG_ID + FS + "pkg1" + FS + "B.html", - "a=@AnnotationType(optional=\"foo\",required=1994),"}, + "a=@AnnotationType(optional=\"foo\",required=1994),"}, //String Array {BUG_ID + FS + "pkg1" + FS + "B.html", - "sa={\"up\",\"down\"},"}, + "sa={\"up\",\"down\"},"}, //Primitive {BUG_ID + FS + "pkg1" + FS + "B.html", - "primitiveClassTest=boolean.class,"}, + "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
and{BUG_ID + FS + "pkg1" + FS + "B.html", - "
@A"}, + ""}, + "public interface B"}, //============================================================== // Handle multiple bounds. //============================================================== {BUG_ID + FS + "pkg" + FS + "MultiTypeParameters.html", - "public <T extends java.lang.Number & java.lang.Runnable> T foo(T t)"}, + "public <T extends java.lang.Number & java.lang.Runnable> T foo(T t)"}, //============================================================== // Test Class-Use Documenation for Type Parameters. @@ -289,347 +314,356 @@ //ClassUseTest1:@A"}, {BUG_ID + FS + "pkg1" + FS + "B.html", - "public interface B
ClassUseTest1<T extends Foo & Foo2>
"
+ "ClassUseTest1" +
+ "<T extends Foo & Foo2>
ClassUseTest1.method(T t)
"
+ "method" +
+ "(T t)
ParamTest" +
+ "<Foo>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
- "ParamTest<Foo>
ClassUseTest1<T extends Foo & Foo2>
"
+ "" +
+ "ClassUseTest1<T extends Foo & Foo2>" +
+ "
ClassUseTest1.method(T t)
"
+ "method" +
+ "(T t)
ClassUseTest2<T extends ParamTest<Foo3>>
"
+ "ClassUseTest2<T " +
+ "extends ParamTest<Foo3>>
ClassUseTest2.method(T t)
"
+ "method" +
+ "(T t)
ParamTest" +
+ "<" +
+ "Foo>
<T extends ParamTest" +
+ "<Foo3>>
ParamTest" +
+ "<Foo3>
ClassUseTest2<T extends ParamTest<Foo3>>
"
+ "" +
+ "ClassUseTest2<T extends ParamTest<Foo3>>" +
+ "
ClassUseTest2.method(T t)
"
+ "method" +
+ "(T t)
<T extends ParamTest<" +
+ "Foo3" +
+ ">>
ParamTest<Foo3>
ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
+ "" +
+ "ClassUseTest3<T extends ParamTest2<java.util.List" +
+ "<? extends Foo4>>>
ClassUseTest3.method(T t)
"
+ "method(T t)
<T extends " +
+ "ParamTest2<java.util.List<? extends Foo4>" +
+ ">>
ParamTest2<java.util.List" +
+ "<? extends Foo4>>
ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
+ "" +
+ "ClassUseTest3<T extends ParamTest2<java.util.List" +
+ "<? extends Foo4>>>
ClassUseTest3.method(T t)
"
+ "method(T t)
" +
+ " <T extends " +
+ "ParamTest2<java.util.List<? extends Foo4>" +
+ ">>
ParamTest2<java.util.List" +
+ "<? extends Foo4>>
void
ClassUseTest3." +
- "" +
- "method(java.util.Set<Foo4> p)
"
+ "void
method(java." +
+ "util.Set<Foo4> p)
ClassUseTest3(java.util.Set<" +
- "" +
- "Foo4> p)
"
+ " class
AnnotationTypeUsage
"
+ " int
AnnotationTypeUsage." +
- "field" +
- "
"
+ " void
AnnotationTypeUsage." +
- "" +
- "method()
"
+ " void
AnnotationTypeUsage." +
- "methodWithParams(int documented," + NL +
- " int undocmented)
"
+ "" +
- "AnnotationTypeUsage()
"
+ "" +
- "AnnotationTypeUsage(int documented," + NL +
- " int undocmented)
"
+ "