diff -r d4c11dcedac3 -r 1aa079321cd2 langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java --- a/langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Fri Dec 05 21:59:59 2008 -0800 +++ b/langtools/test/com/sun/javadoc/testNewLanguageFeatures/TestNewLanguageFeatures.java Thu Jan 08 16:26:59 2009 -0800 @@ -54,14 +54,14 @@ {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
E
- " +
+ "E
- " +
"the type parameter for this class."},
//Type parameters in @see/@link
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
- "TypeParameters
"},
//Method that uses class type parameter.
{BUG_ID + FS + "pkg" + FS + "TypeParameters.html",
@@ -91,13 +91,13 @@
"parameter in TypeParameters\">ET
- This is the first " +
+ "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"},
+ "java.lang.String[] methodThatHasTypeParameters"},
//Wildcard testing.
{BUG_ID + FS + "pkg" + FS + "Wildcards.html",
"" +
@@ -116,18 +116,18 @@
//Signature of subclass that has type parameters.
{BUG_ID + FS + "pkg" + FS + "TypeParameterSubClass.html",
- "public class TypeParameterSubClass<T extends java.lang.String>" +
- "" + NL + - "public void methodWithParams(@AnnotationType(optional=\"Parameter Annotation\",required=1994)" + NL + + "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 + + "public AnnotationTypeUsage(@AnnotationType(optional=\"Constructor Param Annotation\",required=1994)" + NL + " int documented," + NL + " int undocmented)"}, @@ -270,7 +270,7 @@ {BUG_ID + FS + "pkg1" + FS + "B.html", "
@A"}, {BUG_ID + FS + "pkg1" + FS + "B.html", - "public interface B" + NL + + "public interface B" + NL + ""}, @@ -278,7 +278,7 @@ // 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,13 +289,13 @@ "
ClassUseTest1<T extends Foo & Foo2>
"
+ "ClassUseTest1<T extends Foo & Foo2>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
"ClassUseTest1.method(T t)
"
+ "ClassUseTest1.method(T t)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo.html",
"ClassUseTest1<T extends Foo & Foo2>
"
+ "ClassUseTest1<T extends Foo & Foo2>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo2.html",
"ClassUseTest1.method(T t)
"
+ "ClassUseTest1.method(T t)
"
},
//ClassUseTest2: ClassUseTest2<T extends ParamTest<Foo3>>
"
+ "ClassUseTest2<T extends ParamTest<Foo3>>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
"ClassUseTest2.method(T t)
"
+ "ClassUseTest2.method(T t)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest.html",
"ClassUseTest2<T extends ParamTest<Foo3>>
"
+ "ClassUseTest2<T extends ParamTest<Foo3>>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
"ClassUseTest2.method(T t)
"
+ "ClassUseTest2.method(T t)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo3.html",
"ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
+ "ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
"ClassUseTest3.method(T t)
"
+ "ClassUseTest3.method(T t)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "ParamTest2.html",
"ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
+ "ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
"ClassUseTest3.method(T t)
"
+ "ClassUseTest3.method(T t)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
" void
ClassUseTest3.method(java.util.Set<Foo4> p)
"
+ "ClassUseTest3.method(java.util.Set<Foo4> p)
"
},
{BUG_ID + FS + "pkg2" + FS + "class-use" + FS + "Foo4.html",
"ClassUseTest3(java.util.Set<Foo4> p)
"
+ "ClassUseTest3(java.util.Set<Foo4> p)
"
},
//=================================
@@ -432,7 +432,7 @@
"Packages with annotations of type AnnotationType" + NL +
" class
AnnotationTypeUsage
"
+ "AnnotationTypeUsage
"
},
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
@@ -450,7 +450,7 @@
" int
AnnotationTypeUsage.field
"
+ "AnnotationTypeUsage.field
"
},
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
@@ -459,7 +459,7 @@
" void
AnnotationTypeUsage.method()
"
+ "AnnotationTypeUsage.method()
"
},
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
@@ -468,7 +468,7 @@
" void
AnnotationTypeUsage.methodWithParams(int documented," + NL +
+ "AnnotationTypeUsage.methodWithParams(int documented," + NL +
" int undocmented)
"
},
@@ -476,14 +476,14 @@
"Constructors in pkg with annotations of type AnnotationType" + NL +
"
AnnotationTypeUsage()
"
+ "AnnotationTypeUsage()
"
},
{BUG_ID + FS + "pkg" + FS + "class-use" + FS + "AnnotationType.html",
"Constructor parameters in pkg with annotations of type AnnotationType" + NL +
"AnnotationTypeUsage(int documented," + NL +
+ "AnnotationTypeUsage(int documented," + NL +
" int undocmented)
"
},
@@ -491,13 +491,13 @@
// TYPE PARAMETER IN INDEX
//=================================
{BUG_ID + FS + "index-all.html",
- "method(Vector<Object>)"
+ "method(Vector<Object>)"
},
//=================================
// TYPE PARAMETER IN INDEX
//=================================
{BUG_ID + FS + "index-all.html",
- "method(Vector<Object>)"
+ "method(Vector<Object>)"
},
};
private static final String[][] NEGATED_TEST = {
@@ -505,7 +505,7 @@
// ENUM TESTING
//=================================
//NO constructor section
- {BUG_ID + FS + "pkg" + FS + "Coin.html", "Constructor Summary"},
+ {BUG_ID + FS + "pkg" + FS + "Coin.html", "Constructor Summary"},
//=================================
// TYPE PARAMETER TESTING
//=================================
@@ -525,28 +525,28 @@
"" + NL +
"@AnnotationTypeUndocumented(optional=\"Class Annotation\"," + NL +
" required=1994)" + NL +
- "public class AnnotationTypeUsageextends java.lang.Object"},
+ "public class AnnotationTypeUsageextends java.lang.Object"},
//FIELD
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
"" + NL +
"@AnnotationTypeUndocumented(optional=\"Field Annotation\"," + NL +
" required=1994)" + NL +
- "public int field"},
+ "public int field"},
//CONSTRUCTOR
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
"" + NL +
"@AnnotationTypeUndocumented(optional=\"Constructor Annotation\"," + NL +
" required=1994)" + NL +
- "public AnnotationTypeUsage()"},
+ "public AnnotationTypeUsage()"},
//METHOD
{BUG_ID + FS + "pkg" + FS + "AnnotationTypeUsage.html",
"" + NL +
"@AnnotationTypeUndocumented(optional=\"Method Annotation\"," + NL +
" required=1994)" + NL +
- "public void method()"},
+ "public void method()"},
//=================================
// Make sure annotation types do not