@Deprecated(since="1<2>3") -
Package pkg1
+
@Deprecated(since="1<2>3") -
Package pkg3
+
-
@@ -191,7 +191,8 @@ public class TestPrivateClasses extends JavadocTester {
blicInterface
public class PublicChild"""); +public class PublicChild"""); checkOutput("pkg/PublicInterface.html", true, // Field inheritence from non-public superinterface. @@ -235,10 +236,12 @@ public class TestPrivateClasses extends JavadocTester { //Make sure when no modifier appear in the class signature, the //signature is displayed correctly without extra space at the beginning. """ -""", """class PrivateParent"""); +class PrivateParent"""); checkOutput("pkg/PrivateParent.html", false, """ -class PrivateParent"""); +class PrivateParent"""); } } diff --git a/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java b/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java index 987d854b20e..82c34ea5b29 100644 --- a/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java +++ b/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java @@ -55,7 +55,7 @@ public class TestProperty extends JavadocTester { + goodPropertyThis is an Object property where the Object is a single Object.
- See Also:
@@ -67,7 +67,7 @@ public class TestProperty extends JavadocTester { + n> badPropertyThis is an Object property where the Object is an array.
- See Also:
@@ -100,8 +100,8 @@ public class TestProperty extends JavadocTester {public final <\ span class="return-type">Obje\ ctProperty<java.util.List<T>> listProperty<\ - /span>+ r in MyClassT">T>> listProperty<\ + /div>This is an Object property where the Object is a singleList<T>
.
- See Also:
diff --git a/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java b/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java index 2390eb8b383..2f8d349a1e3 100644 --- a/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java +++ b/test/langtools/jdk/javadoc/doclet/testRecordTypes/TestRecordTypes.java @@ -75,7 +75,7 @@ public class TestRecordTypes extends JavadocTester { """Record R
""", """ - public record R""", + public record R""", """R(int r1)
"""); } @@ -96,7 +96,7 @@ public class TestRecordTypes extends JavadocTester { """Record R
""", """ - public record R""", + public record R""", """R(int r1)
"""); } @@ -117,7 +117,7 @@ public class TestRecordTypes extends JavadocTester { """Record R
""", """ - public record R""", + public record R""", """R()
"""); } @@ -142,7 +142,7 @@ public class TestRecordTypes extends JavadocTester { """Record R
""", """ - public record R""", + public record R""", """
- Record Components:
@@ -173,7 +173,7 @@ public class TestRecordTypes extends JavadocTester { """Record R<T>
""", """ - public record R<T>""", + public record R<T>""", """
- Type Parameters:
@@ -226,22 +226,22 @@ public class TestRecordTypes extends JavadocTester { "Returns a string representation of this record.", "Method Details", """ - toString""", + toString""", "Returns a string representation of this record. The representation " + "contains the name of the type, followed by the name and value of " + "each of the record components.", """ - hashCode""", + hashCode""", "Returns a hash code value for this object. The value is derived " + "from the hash code of each of the record components.", """ - equals""", + equals""", """ Indicates whether some other object is "equal to" this one. The objects are equa\ l if the other object is of the same class and if all the record components are \ equal. All components in this record are compared with '=='.""", """ - r1""", + r1""", """ Returns the value of ther1
record component.""" ); @@ -289,22 +289,22 @@ public class TestRecordTypes extends JavadocTester { "Returns a string representation of this record.", "Method Details", """ - toString""", + toString""", "Returns a string representation of this record. The representation " + "contains the name of the type, followed by the name and value of " + "each of the record components.", """ - hashCode""", + hashCode""", "Returns a hash code value for this object. The value is derived " + "from the hash code of each of the record components.", """ - equals""", + equals""", """ Indicates whether some other object is "equal to" this one. The objects are equa\ l if the other object is of the same class and if all the record components are \ equal. All components in this record are compared with '=='.""", """ - r1""", + r1""", """ Returns the value of ther1
record component.""" ); @@ -471,26 +471,27 @@ public class TestRecordTypes extends JavadocTester { checkOutput("p/R.html", true, """ -public record R(""" +public record R(""" + rcAnno + """ int i) - extends java.lang.Record""", + extends java.lang.Record""", "" + fAnno + """ private final int<\ - /span> i""", + /span> ipublic R(""" + lass="element-name">R(""" + pAnno + "int i)", "" + mAnno + """ public int&\ - nbsp;i()"""); + nbsp;i()"""); } } diff --git a/test/langtools/jdk/javadoc/doclet/testSealedTypes/TestSealedTypes.java b/test/langtools/jdk/javadoc/doclet/testSealedTypes/TestSealedTypes.java index 5e0b5c4e114..336005ed6e8 100644 --- a/test/langtools/jdk/javadoc/doclet/testSealedTypes/TestSealedTypes.java +++ b/test/langtools/jdk/javadoc/doclet/testSealedTypes/TestSealedTypes.java @@ -59,7 +59,9 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A"); + """ +public sealed class <\ + span class="element-name type-name-label">A"""); } @Test @@ -75,7 +77,9 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed interface A"); + """ +""", // When JDK-8068737 is fixed, we should change the order """ """, + on in typeannos">@MRtnA [] array2Deep\ + ()""", """public sealed interface A"""); } @Test @@ -92,10 +96,14 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A"); + """ +""", """public sealed class <\ + span class="element-name type-name-label">A"""); checkOutput("p/B.html", true, - "public non-sealed class B"); + """ +""", + ava.lang.String> nestedParameterized\ + span>public non-sealed class <\ + span class="element-name type-name-label">B"""); } @Test @@ -112,10 +120,14 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed interface A"); + """ +"""); checkOutput("typeannos/ModifiedScoped.html", true, """ @@ -152,14 +153,14 @@ public class TestTypeAnnotations extends JavadocTester { ;@FldA java.lang.String,\ @FldB java.lang.S\ tring>,@FldB j\ - ava.lang.String> nestedParameterizedpublic sealed interface <\ + span class="element-name type-name-label">A"""); checkOutput("p/B.html", true, - "public non-sealed interface B"); + """ +"""); + ;array2Deeppublic non-sealed interface <\ + span class="element-name type-name-label">B"""); } @Test @@ -132,10 +144,14 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A"); + """ +""", // When JDK-8068737, we should change the order """ @@ -141,7 +142,7 @@ public class TestTypeAnnotations extends JavadocTester { ="annotation in typeannos">@FldC @FldB [] @FldC<\ /a> @FldA [] \ - ;array2Deeppublic sealed class <\ + span class="element-name type-name-label">A"""); checkOutput("p/B.html", true, - "public abstract sealed class B"); + """ +""", """public abstract sealed class\ + B"""); } @Test @@ -152,10 +168,14 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed interface A"); + """ +"""); // Test for type annotations on Class Parameters (ClassParameters.java). checkOutput("typeannos/ExtendsBound.html", true, """ - class ExtendsBound<K extends @ClassParamA java.lang.String>\ - span>"""); + class ExtendsBound<K extend\ + s @ClassParamA ja\ + va.lang.String>"""); checkOutput("typeannos/ExtendsGeneric.html", true, """ -public sealed interface A"""); checkOutput("p/B.html", true, - "public sealed interface B"); + """ +"""); checkOutput("typeannos/MyInterface.html", true, """ @@ -71,48 +71,49 @@ public class TestTypeAnnotations extends JavadocTester { Parameteriz\ edInterface<@Cla\ ssExtA java.lang.String>, @ClassExtB java.lang.CharSequence"""); + ypeannos">@ClassExtB java.lang.CharSequencepublic sealed interface B"""); } @Test @@ -173,9 +193,11 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits B"""); } @Test @@ -195,11 +217,13 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B, " - + "C, " - + "D"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits B, C, D"""); } @Test @@ -219,11 +243,13 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B, " - + "C " - + "(not exhaustive)"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits B, C (not exhaustive)\ + span>"""); } // @Test // javac incorrectly rejects the source @@ -244,10 +270,13 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B, " - + "C, p.D"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits A.B, A.C, A.D"""); } @Test @@ -269,11 +298,13 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B, " - + "C " - + "(not exhaustive)"); + """ + """); } @Test @@ -294,11 +325,13 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits B, " - + "C, " - + "D"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits B, C, D"""); } @Test @@ -319,10 +352,12 @@ public class TestSealedTypes extends JavadocTester { checkExit(Exit.OK); checkOutput("p/A.html", true, - "public sealed class A\n" - + "extends java.lang.Object\n" - + "permits A.B, " - + "A.C, " - + "A.D"); + """ +public sealed class <\ + span class="element-name type-name-label">A + extends java.lang.Object + permits A.B, A.C, A.D"""); } } diff --git a/test/langtools/jdk/javadoc/doclet/testSerializedFormWithClassFile/TestSerializedFormWithClassFile.java b/test/langtools/jdk/javadoc/doclet/testSerializedFormWithClassFile/TestSerializedFormWithClassFile.java index 14cc5c251dd..cadaabf1906 100644 --- a/test/langtools/jdk/javadoc/doclet/testSerializedFormWithClassFile/TestSerializedFormWithClassFile.java +++ b/test/langtools/jdk/javadoc/doclet/testSerializedFormWithClassFile/TestSerializedFormWithClassFile.java @@ -76,7 +76,7 @@ public class TestSerializedFormWithClassFile extends JavadocTester { checkOutput("serialized-form.html", true, """public void readObject&\ + lass="return-type">void readObject&\ #8203;(java.io.ObjectInputStream arg0) throws java.lang.ClassNotFoundException, java.io.IOExceptiondiff --git a/test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java b/test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java index f6f636cda7a..ce2965f555b 100644 --- a/test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java +++ b/test/langtools/jdk/javadoc/doclet/testStylesheet/TestStylesheet.java @@ -352,7 +352,7 @@ public class TestStylesheet extends JavadocTester { "method-summary", // the following provide the ability to optionally override components of the // memberSignature structure - "member-name", + "name", "modifiers", "packages", "return-type", diff --git a/test/langtools/jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java b/test/langtools/jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java index 6f0ec9cff85..add9c5d905d 100644 --- a/test/langtools/jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java +++ b/test/langtools/jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java @@ -93,7 +93,7 @@ public class TestSummaryTag extends JavadocTester {m3() m3
public void m3()+ lass="return-type">voidFirst sentence some text maybe second sentence.""" diff --git a/test/langtools/jdk/javadoc/doclet/testThrows/TestThrows.java b/test/langtools/jdk/javadoc/doclet/testThrows/TestThrows.java index 4f116ab7ce9..57e88d60c9e 100644 --- a/test/langtools/jdk/javadoc/doclet/testThrows/TestThrows.java +++ b/test/langtools/jdk/javadoc/doclet/testThrows/TestThrows.java @@ -76,7 +76,7 @@ """<T extends java\ .lang.Throwable> void""", diff --git a/test/langtools/jdk/javadoc/doclet/testTypeAnnotations/TestTypeAnnotations.java b/test/langtools/jdk/javadoc/doclet/testTypeAnnotations/TestTypeAnnotations.java index cd1349f88cd..14bdce240ae 100644 --- a/test/langtools/jdk/javadoc/doclet/testTypeAnnotations/TestTypeAnnotations.java +++ b/test/langtools/jdk/javadoc/doclet/testTypeAnnotations/TestTypeAnnotations.java @@ -63,7 +63,7 @@ public class TestTypeAnnotations extends JavadocTester { a> java.lang.CharSequence, @ClassExtA ParameterizedInterface<@ClassExtB java.lang.String>"""); + in typeannos">@ClassExtB java.lang.String>m() + an class="element-name">m() throws T, java.lang.Exception class ExtendsGeneric<K extends @ClassParamA Unannotated<@ClassParamB java.lang.String>>\ - span>"""); +class ExtendsGeneric<K extends @ClassParamA Unannotated<@ClassParamB java.lang.String>>"""); checkOutput("typeannos/TwoBounds.html", true, """ -""", """ """, + ="annotation in typeannos">@FldB [] a\ + rray1Deepclass TwoBounds<K extends @ClassParamA java.lang.String,\ - 203;V extends @ClassP\ - aramB java.lang.String>"""); +class TwoBounds<K extends @ClassParamA java.lang.String,V extends\ + @ClassParamB jav\ + a.lang.String>"""); checkOutput("typeannos/Complex1.html", true, """ - class Complex1<K extends @ClassParamA java.lang.String & jav\ - a.lang.Runnable>"""); + class Complex1<K extends @ClassParamA java.l\ + ang.String & java.lang.Runnable>"""); checkOutput("typeannos/Complex2.html", true, """ - class Complex2<K extends java.lang.String &\ - @ClassParamB jav\ - a.lang.Runnable>"""); + class Complex2<K extends ja\ + va.lang.String & \ + @ClassParamB java.lang.Runnable>"""); checkOutput("typeannos/ComplexBoth.html", true, """ - class ComplexBoth<K extends @ClassParamA java.lang.String & \ - @ClassParamA java\ - .lang.Runnable>"""); + class ComplexBoth<K extends\ + @ClassParamA jav\ + a.lang.String & @\ + ClassParamA java.lang.Runnable>"""); // Test for type annotations on fields (Fields.java). checkOutput("typeannos/DefaultScope.html", true, @@ -121,18 +122,18 @@ public class TestTypeAnnotations extends JavadocTester { tml" title="class in typeannos">Parameterized<@FldA java.lang.String,@FldB java.lang.String> bothTypeArgs""", + class="element-name">bothTypeArgsjava.lang.String @FldB [][] array2SecondOld""", + ass="element-name">array2SecondOldpublic final <\ span class="return-type">@Fl\ - dA java.lang.String[][] array2<\ - /div>"""); + dA java.lang.String[][] array2\ +"""); // Test for type annotations on method return types (MethodReturnType.java). checkOutput("typeannos/MtdDefaultScope.html", true, @@ -167,20 +168,20 @@ public class TestTypeAnnotations extends JavadocTester { """, + bsp;method()@MRtnA java.lang.String[][] array2()"""); + lass="element-name">array2()"""); checkOutput("typeannos/MtdModifiedScoped.html", true, """ @@ -191,16 +192,16 @@ public class TestTypeAnnotations extends JavadocTester { terized<@MRtnA j\ ava.lang.String,@MRt\ nB java.lang.String>,@MRtnB java.lang.String> ne\ - stedMtdParameterized()"""); + eannos">@MRtnB java.lang.String> n\ + estedMtdParameterized()"""); // Test for type annotations on method type parameters (MethodTypeParameters.java). checkOutput("typeannos/UnscopedUnmodified.html", true, """ """, + ng> void methodExtends()""", """<K extends <\ @@ -208,14 +209,14 @@ public class TestTypeAnnotations extends JavadocTester { MtdTyParameterized.html" title="class in typeannos">MtdTyParameterized<@MTyParamB java.lang.\ String>> - void nestedExtends()"""); + void nestedExtends()"""); checkOutput("typeannos/PublicModifiedMethods.html", true, """public final <\ span class="type-parameters"><K extends @MTyParamA java.lang.String> - void methodExtends()""", + void methodExtends()""", """public final <\ @@ -225,45 +226,45 @@ public class TestTypeAnnotations extends JavadocTester { > MtdTyParameterize\ d<@MTyParamB\ java.lang.String>> - void dual()"""); + void dual()"""); // Test for type annotations on parameters (Parameters.java). checkOutput("typeannos/Parameters.html", true, """ """, + lass="element-name">unannotated(ParaParameterized<java\ + .lang.String,java.lang.String> a)""", """void nestedParaParameterized(ParaParameterized<\ - /a><@ParamA ParaParameterized<@ParamA java.lang.String\ - ,@ParamB java.l\ - ang.String>,@Par\ - amB java.lang.String> a)""", + lass="element-name">nestedParaParameterized(ParaParameterized\ + <@ParamA ParaParameterized<<\ + a href="ParamA.html" title="annotation in typeannos">@ParamA java.lang.Strin\ + g,@ParamB java.\ + lang.String>,@Pa\ + ramB java.lang.String> a)""", // When JDK-8068737 is fixed, we should change the order """ """); + lass="element-name">array2Deep(@ParamA java.lang.String @ParamB [] @ParamA [] a)"""); // Test for type annotations on throws (Throws.java). checkOutput("typeannos/ThrDefaultUnmodified.html", true, """ -void oneException() + """, """""" ); // Test for type annotations on wildcard type (Wildcards.java). checkOutput("typeannos/BoundTest.html", true, """void twoExceptions() + lass="element-name">twoExceptions() throws @ThrA java.lang.RuntimeException, @ThrA java.lang.Exception"""); @@ -271,28 +272,28 @@ public class TestTypeAnnotations extends JavadocTester { checkOutput("typeannos/ThrPublicModified.html", true, """public final <\ - span class="return-type">void oneException\ - (java.lang.String a) + span class="return-type">void oneException\ + (java.lang.String a) throws @ThrA java.lang.Exception""", """public final <\ - span class="return-type">void twoException\ - s(java.lang.String a) + span class="return-type">void twoExceptions(java.lang.String a) throws @ThrA java.lang.RuntimeException, @ThrA java.lang.Exception"""); checkOutput("typeannos/ThrWithValue.html", true, """ -void oneException() + """, """""" + void secondAnnotated()void twoExceptions() + lass="element-name">twoExceptions() throws @ThrB("m") java.lang.RuntimeException, @ThrA java.lang.Exception"""); @@ -304,104 +305,104 @@ public class TestTypeAnnotations extends JavadocTester { @TyParaA V extends @TyParaA java.lang.Stri\ ng> - void secondAnnotated()void wcExtends(MyList<? extends @WldA java.lang.String> l)\ - div>""", + lass="element-name">wcExtends(MyList<? extends @WldA java.lang.String> l)<\ + /div>""", """ """); + tion in typeannos">@WldA java.lang.String> returnWcSuper()"""); checkOutput("typeannos/BoundWithValue.html", true, """void wcSuper(MyList<? super @WldB("m") java.lang.String> l)<\ - /div>""", + lass="element-name">wcSuper(MyList<? super @WldB("m") java.lang.String> l)\ +""", """ """); + ="element-name">returnWcExtends()"""); checkOutput("typeannos/SelfTest.html", true, """ """, + typeannos">@WldA ?> returnWcExtends\ + ()""", """ """); + nbsp;complex()"""); checkOutput("typeannos/SelfWithValue.html", true, """ """, + typeannos">@WldB("m") ?> returnWcExtends\ + span>()""", """ """); + ("m") ? super java.lang.String>> complex()"""); // Test for receiver annotations (Receivers.java). checkOutput("typeannos/DefaultUnmodified.html", true, """void withException(@RcvrA DefaultUnmodified&n\ - bsp;this) + lass="element-name">withException(@RcvrA DefaultUnmodified&\ + nbsp;this) throws java.lang.Exception""", """ """, + nbsp;nonVoid(@RcvrA @RcvrB("m") DefaultUnmodified this)""", """<T extends java.l\ ang.Runnable> void accept(@RcvrA DefaultUnmodified this\ - , + ass="element-name">accept(@RcvrA DefaultUnmodified thi\ + s, T r) throws java.lang.Exception"""); checkOutput("typeannos/PublicModified.html", true, """public final <\ - span class="return-type">java.lang.String \ - nonVoid(@RcvrA PublicModified this)""", + span class="return-type">java.lang.String nonVoid\ + (@RcvrA PublicModified this)""", """public final <\ span class="type-parameters"><T extends java.lang.Runnable>"""); @@ -410,42 +411,44 @@ public class TestTypeAnnotations extends JavadocTester { """void accept\ - (void accept\ + (@RcvrA PublicModified this, T r) throws java.lang.Exception<T extends java.l\ ang.Runnable> void accept(@RcvrB("m") WithValue this, + ass="element-name">accept(@RcvrB("m") WithValue this, T r) throws java.lang.Exception"""); checkOutput("typeannos/WithFinal.html", true, """ """); + nbsp;nonVoid(@RcvrB("m") WithFinal afield)"""); checkOutput("typeannos/WithBody.html", true, """ """); checkOutput("typeannos/Generic2.html", true, """ """); + lass="element-name">test2(@RcvrA Generic2<X> thi\ + s)"""); // Test for repeated type annotations (RepeatedAnnotations.java). checkOutput("typeannos/RepeatingAtClassLevel.html", true, """ -@RepTypeA @RepTypeA +@RepTypeA @RepTypeA @RepTypeB @RepTypeB - class RepeatingAtClassLevel - extends java.lang.Object"""); + class RepeatingAtClassLevel + extends java.lang.Object"""); // @ignore 8146008 // checkOutput("typeannos/RepeatingAtClassLevel2.html", true, @@ -476,7 +479,7 @@ public class TestTypeAnnotations extends JavadocTester { @RepConstructorB<\ /a> @RepConstruct\ orB - RepeatingOnConstructor()""", + RepeatingOnConstructor()""", """@RepConstructorB<\ /a> @RepConstruct\ orB - RepeatingOnConstructor(int i, + RepeatingOnConstructor(int i, int j)""", """ @@ -495,17 +498,17 @@ public class TestTypeAnnotations extends JavadocTester { @RepAllContextsB<\ /a> @RepAllContex\ tsB - RepeatingOnConstructor(int i, + RepeatingOnConstructor(int i, int j, int k)""", """ -RepeatingOnConstructor\ - span>(@RepParameterA @RepParameterA @RepParameterB @RepParameterB +""", + span class="element-name">i4""", """RepeatingOnConstructor\ + 8203;(@RepParameterA @RepParameterA @RepParameterB @RepParameterB java.lang.String parameter, @RepParameterA \ @RepParameterA \ @@ -593,9 +596,13 @@ public class TestTypeAnnotations extends JavadocTester { """, """ - """, + """, """""", """ """, """ @@ -630,7 +637,7 @@ public class TestTypeAnnotations extends JavadocTester { ation in typeannos">@RepAllContextsA @RepAllContextsB @RepAllContextsB java.lang.Integer <\ - span class="member-name">i4@RepTypeUseA @RepTypeUseB @RepTypeUseB java.lang.Integer i2""", + s="element-name">i2java.lang.String @RepTypeUseA @RepTypeUseA @RepTypeUseB @RepTypeUseB [] sa"""); + ="annotation in typeannos">@RepTypeUseB [] sa"""); checkOutput("typeannos/RepeatingOnMethod.html", true, """ @@ -695,14 +702,14 @@ public class TestTypeAnnotations extends JavadocTester { f="RepMethodA.html" title="annotation in typeannos">@RepMethodA @RepMethodB @RepMethodB - java.lang.String test1()""", + java.lang.String test1()""", """ @RepTypeUseA @RepTypeUseA @RepTypeUseB @RepTypeUseB java.lang.String\ - test2()""", + test2()""", """ @RepMethodA @RepTypeUseA @RepTypeUseA @RepTypeUseB \ - @RepTypeUseB java.lang.String test3 java.lang.String test3()""", """ @@ -728,10 +735,10 @@ public class TestTypeAnnotations extends JavadocTester { ation in typeannos">@RepAllContextsA @RepAllContextsB @RepAllContextsB java.lang.Stringtest4()""", + pan class="element-name">test4()""", """ - java.lang.String test5 test5(@\ RepTypeUseA @RepT\ ypeUseA @RepTypeU\ @@ -742,22 +749,15 @@ public class TestTypeAnnotations extends JavadocTester { @RepParameterB \ @RepParameterB java.lang.String parameter, - @RepParameterA \ - @RepParameterA \ - @RepParameterB \ - @RepParameterB - java.lang.String @Rep\ - TypeUseA @RepType\ - UseA @RepTypeUseB\ - @RepTypeUseB\ - ... vararg)"""); + @RepParameterA @RepParameterA @RepParameterB @RepParameterB + java.lang.String @RepTypeUseA @RepTypeUseA @RepTypeUseB @RepTypeUseB ... vararg)"""); checkOutput("typeannos/RepeatingOnTypeParametersBoundsTypeArgumentsOnMethod.html", true, """(package private) <T> java.lang.String
-genericMethod(T t)
""", +@@ -776,17 +776,17 @@ public class TestTypeAnnotations extends JavadocTester { ">test()""", """ - java.lang.String test(@RepTypeUseA @RepTypeUseA @RepTypeUseB @RepTypeUseB RepeatingOnTypeParametersBoundsTypeArgumentsOn\ - Method<@RepTypeUse\ - A @RepTypeUseA @RepTypeUseB @RepTypeUseB T>&\ - nbsp;this)"""); + java.lang.String test\ + span>(@RepTypeUseA @RepTypeUseA @RepTypeUseB @RepTypeUseB RepeatingOnTypeParametersBoundsTypeArgumentsOnMethod&\ + lt;@RepTypeUseA <\ + a href="RepTypeUseA.html" title="annotation in typeannos">@RepTypeUseA @RepTypeUseB @RepTypeUseB T> th\ + is)"""); checkOutput("typeannos/RepeatingOnVoidMethodDeclaration.html", true, """ @@ -794,6 +794,6 @@ public class TestTypeAnnotations extends JavadocTester { f="RepMethodA.html" title="annotation in typeannos">@RepMethodA @RepMethodB @RepMethodB - void test()"""); + void test()"""); } } diff --git a/test/langtools/jdk/javadoc/doclet/testTypeParams/TestTypeParameters.java b/test/langtools/jdk/javadoc/doclet/testTypeParams/TestTypeParameters.java index 44a69e62a65..ca7cce43862 100644 --- a/test/langtools/jdk/javadoc/doclet/testTypeParams/TestTypeParameters.java +++ b/test/langtools/jdk/javadoc/doclet/testTypeParams/TestTypeParameters.java @@ -88,10 +88,10 @@ public class TestTypeParameters extends JavadocTester { checkExit(Exit.OK); checkOutput("pkg/ClassUseTest3.html", true, - """ - public class ClassUseTest3<\ - /a><T extends ParamTest2&l\ - t;java.util.List<? extends Foo4&\ - gt;>>"""); + """ + public class ClassUseTest3<T extends ParamTest2<java.util.List<? extends Foo4>>>"""); } }genericMethod(T t)
""", """(package private) <T> java.lang.String