public final <\
span class="return-type">void
setRate̴\
diff --git a/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java b/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
index 3e476dfd2670..090381956e4c 100644
--- a/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
+++ b/test/langtools/jdk/javadoc/doclet/testLinkOption/TestLinkOption.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2021, 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
@@ -101,13 +101,19 @@ public void test() {
"
getSystemClassLoader()
",
"
createTempFile(prefix, suffix, null)
",
"""
-
RFC 2279: UTF-8, a
- transformation format of ISO 10646,
RFC 2373: IPv6 Addressing
- Architecture,
RFC 2396: Uniform
- Resource Identifiers (URI): Generic Syntax,
RFC 2732: Format for
- Literal IPv6 Addresses in URLs,
A nearby file
+
+
+
""");
checkOutput("mylib/lang/StringBuilderChild.html", true,
diff --git a/test/langtools/jdk/javadoc/doclet/testLinkOption/TestOptionOrder.java b/test/langtools/jdk/javadoc/doclet/testLinkOption/TestOptionOrder.java
index d27cd96d0338..28ffa7c86aa9 100644
--- a/test/langtools/jdk/javadoc/doclet/testLinkOption/TestOptionOrder.java
+++ b/test/langtools/jdk/javadoc/doclet/testLinkOption/TestOptionOrder.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2021, 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
@@ -116,7 +116,7 @@ public class App {
checkOrder("app/App.html",
// Instance in See Also
- "
RFC 2279: UTF-8, a
- * transformation format of ISO 10646,
RFC 2373: IPv6 Addressing
- * Architecture,
RFC 2396: Uniform
- * Resource Identifiers (URI): Generic Syntax,
RFC 2732: Format for
- * Literal IPv6 Addresses in URLs,
A nearby file
+ * transformation format of ISO 10646
+ * @see RFC 2373: IPv6 Addressing
+ * Architecture
+ * @see RFC 2396: Uniform
+ * Resource Identifiers (URI): Generic Syntax
+ * @see RFC 2732: Format for
+ * Literal IPv6 Addresses in URLs
+ * @see A nearby file
*/
public void externalLink() {}
}
diff --git a/test/langtools/jdk/javadoc/doclet/testModules/TestModules.java b/test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
index a6eaabe773c4..91094b681534 100644
--- a/test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
+++ b/test/langtools/jdk/javadoc/doclet/testModules/TestModules.java
@@ -628,9 +628,13 @@ void checkModuleTags() {
JDK 9""",
"""
See Also:
-
"Test see tag",\s
- TestClassInModuleTags
""",
+
+
+ """,
"""
Regular Tag:
Just a regular simple tag.""",
diff --git a/test/langtools/jdk/javadoc/doclet/testNewLanguageFeatures/TestNewLanguageFeatures.java b/test/langtools/jdk/javadoc/doclet/testNewLanguageFeatures/TestNewLanguageFeatures.java
index 8349327f42a0..a412886c165f 100644
--- a/test/langtools/jdk/javadoc/doclet/testNewLanguageFeatures/TestNewLanguageFeatures.java
+++ b/test/langtools/jdk/javadoc/doclet/testNewLanguageFeatures/TestNewLanguageFeatures.java
@@ -122,7 +122,11 @@ void checkTypeParameters() {
"""
- See Also:
- TypeParameters
+ -
+
+
""",
// Method that uses class type parameter.
"""
diff --git a/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java b/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java
index 170d6b4add0b..b38de9454f8c 100644
--- a/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java
+++ b/test/langtools/jdk/javadoc/doclet/testProperty/TestProperty.java
@@ -59,8 +59,12 @@ public void testArrays() {
This is an Object property where the Object is a single Object.
- See Also:
- getGood()
,\s
- setGood(MyObj)
+ -
+
+
""",
"""
@@ -71,8 +75,12 @@ public void testArrays() {
This is an Object property where the Object is an array.
- See Also:
- getBad()
,\s
- setBad(MyObj[])
+ -
+
+
""",
// no tab classes should be used in the property table
@@ -105,8 +113,12 @@ class in pkg">ObjectProperty<
My
This is an Object property where the Object is a single List<T>
.
- See Also:
- getList()
,\s
- setList(List)
+ -
+
+
"""
);
}
diff --git a/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java b/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java
index 81388ecd6824..f364cd47ef7c 100644
--- a/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java
+++ b/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTag.java
@@ -23,7 +23,7 @@
/*
* @test
- * @bug 8017191 8182765 8200432 8239804 8250766
+ * @bug 8017191 8182765 8200432 8239804 8250766 8262992
* @summary Javadoc is confused by at-link to imported classes outside of the set of generated packages
* @library ../../lib
* @modules jdk.javadoc/jdk.javadoc.internal.tool
@@ -53,19 +53,33 @@ public void test() {
"""
- See Also:
- Test.InnerOne.foo()
,\s
- Test.InnerOne.bar(Object)
,\s
- Javadoc,\s
- something
,\s
- Test\
- .InnerOne.format(java.lang.String, java.lang.Object...)
+ -
+
+
""");
checkOutput("pkg/Test.html", false,
"<code>List</code>");
checkOutput("pkg/Test2.html", true,
- "Serializable
");
+ "Serializable
",
+ """
+
+ - See Also:
+ -
+
+
+
""");
checkOutput("pkg/Test2.html", false,
">Serialized Form<");
@@ -83,8 +97,12 @@ public void testBadReference() {
"""
- See Also:
- Object
,\s
- Foo<String>
+ -
+
+
""");
}
}
diff --git a/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTagWithModule.java b/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTagWithModule.java
index f9a01444384a..18dbefcbdaab 100644
--- a/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTagWithModule.java
+++ b/test/langtools/jdk/javadoc/doclet/testSeeTag/TestSeeTagWithModule.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2020, 2021, 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
@@ -23,7 +23,7 @@
/*
* @test
- * @bug 8164408
+ * @bug 8164408 8262992
* @summary Add module support for see, link and linkplain javadoc tags
* @library /tools/lib ../../lib
* @modules
@@ -73,18 +73,20 @@ public void testSeeModuleInternal(Path base) throws Exception {
checkOutput("m3/com/m3/app/App.html", true,
"""
See Also:
- m1
,\s
- m1
,\s
- com.m1.lib
,\s
- Lib
,\s
- Lib.method(java.lang.String)
,\s
- Lib.method(String)
,\s
- m2
,\s
- m2
,\s
- com.m2.lib
,\s
- Lib
,\s
- Lib.method(java.lang.String)
,\s
- Lib.method(String)
+
+
+ m1
+ m1
+ com.m1.lib
+ Lib
+ Lib.method(java.lang.String)
+ Lib.method(String)
+ m2
+ m2
+ com.m2.lib
+ Lib
+ Lib.method(java.lang.String)
+ Lib.method(String)
""");
}
@@ -106,22 +108,24 @@ public void testSeeModuleExternal(Path base) throws Exception {
checkOutput("m3/com/m3/app/App.html", true,
"""
- See Also:
- m1
,\s
- m1
,\s
- m1/com.m1.lib
,\s
- Lib
,\s
- Lib.method(java.lang.String)
,\s
- Lib.method(String)
,\s
- m2
,\s
- m2
,\s
- m2/com.m2.lib
,\s
- Lib
,\s
- Lib.method(java.lang.String)
,\s
- Lib.method(String)
+ -
+
+ m1
+ m1
+ m1/com.m1.lib
+ Lib
+ Lib.method(java.lang.String)
+ Lib.method(String)
+ m2
+ m2
+ m2/com.m2.lib
+ Lib
+ Lib.method(java.lang.String)
+ Lib.method(String)
""");
}
@@ -137,14 +141,16 @@ public void testSeeModuleSameNameInternal(Path base) throws Exception {
checkOutput("com.ex2/com/ex2/B.html", true,
"""
- See Also:
- com.ex1
,\s
- com.ex1
,\s
- com.ex1
,\s
- A
,\s
- A.m()
,\s
- A.m()
,\s
- com.ex2
,\s
- com.ex2
+ -
+
+ com.ex1
+ com.ex1
+ com.ex1
+ A
+ A.m()
+ A.m()
+ com.ex2
+ com.ex2
""");
}
@@ -164,14 +170,16 @@ public void testSeeModuleSameNameExternal(Path base) throws Exception {
checkOutput("com.ex2/com/ex2/B.html", true,
"""
- See Also:
- com.ex1
,\s
- com.ex1
,\s
- com.ex1/com.ex1
,\s
- A
,\s
- A.m()
,\s
- A.m()
,\s
- com.ex2
,\s
- com.ex2
+ -
+
+ com.ex1
+ com.ex1
+ com.ex1/com.ex1
+ A
+ A.m()
+ A.m()
+ com.ex2
+ com.ex2
""");
}
diff --git a/test/langtools/jdk/javadoc/doclet/testSeeTag/pkg/Test2.java b/test/langtools/jdk/javadoc/doclet/testSeeTag/pkg/Test2.java
index 97107767ae02..8f9cc99bd5ea 100644
--- a/test/langtools/jdk/javadoc/doclet/testSeeTag/pkg/Test2.java
+++ b/test/langtools/jdk/javadoc/doclet/testSeeTag/pkg/Test2.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2021, 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
@@ -27,6 +27,7 @@
/**
* @see java.io.Serializable
+ * @see Test See tag with very long label text
*/
public interface Test2 extends Serializable {}
diff --git a/test/langtools/jdk/javadoc/doclet/testSerializedForm/TestSerializedForm.java b/test/langtools/jdk/javadoc/doclet/testSerializedForm/TestSerializedForm.java
index 05d084f2bfb5..f56ce3bebe06 100644
--- a/test/langtools/jdk/javadoc/doclet/testSerializedForm/TestSerializedForm.java
+++ b/test/langtools/jdk/javadoc/doclet/testSerializedForm/TestSerializedForm.java
@@ -70,7 +70,11 @@ public void testDefault() {
Deprecated.
- See Also:
- TestSerializedForm
+ -
+
+
""",
"Class pkg1.NestedInnerClass.InnerClass.ProNestedInnerClass "
+ "extends java.lang.Object implements Serializable
",
diff --git a/test/langtools/jdk/javadoc/doclet/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java b/test/langtools/jdk/javadoc/doclet/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java
index 90994592ae4e..be8519d659ee 100644
--- a/test/langtools/jdk/javadoc/doclet/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java
+++ b/test/langtools/jdk/javadoc/doclet/testSerializedFormDeprecationInfo/TestSerializedFormDeprecationInfo.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2021, 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
@@ -98,7 +98,11 @@ void checkCommentDeprecated(boolean expectFound) {
- Throws:
java.io.IOException
- on error
- See Also:
- C1.setUndecorated(boolean)
+ -
+
+
""",
"""
Deprecated.
@@ -111,7 +115,11 @@ void checkCommentDeprecated(boolean expectFound) {
- Since:
- 1.4
- See Also:
- C1.setUndecorated(boolean)
+ -
+
+
""",
"""
Deprecated.
diff --git a/test/langtools/jdk/javadoc/doclet/testSingletonLists/TestSingletonLists.java b/test/langtools/jdk/javadoc/doclet/testSingletonLists/TestSingletonLists.java
index daf2fbb41751..bb8385021fa6 100644
--- a/test/langtools/jdk/javadoc/doclet/testSingletonLists/TestSingletonLists.java
+++ b/test/langtools/jdk/javadoc/doclet/testSingletonLists/TestSingletonLists.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 2021, 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
@@ -224,13 +224,10 @@ void checkLists() {
*/
public class ListChecker extends HtmlChecker {
private int listErrors;
-
- private boolean inBody;
- private boolean inNoScript;
+ // Ignore "Constant Field Values" @see items for final fields created by javadoc
+ private boolean inSeeList;
private Stack