-
Bug
-
Resolution: Fixed
-
P3
-
18
-
Java: 18-ea; OpenJDK 64-Bit Server VM 18-ea+27-1924
Runtime: OpenJDK Runtime Environment 18-ea+27-1924
System: Windows 10 version 10.0 running on amd64; UTF-8; en_IN (nb)
-
b32
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290412 | 20 | Pavel Rappo | P3 | Resolved | Fixed | b07 |
JDK-8291437 | 19.0.2 | Pavel Rappo | P3 | Resolved | Fixed | b01 |
JDK-8291315 | 19.0.1 | Pavel Rappo | P3 | Resolved | Fixed | b04 |
What happened
----------------------
Javadoc snippet output displays class name defined in the "target" attribute of @link tag instead of white space hyperlink.
How to reproduce
------------------------
use below code and generate javadoc using jdk-18.
public class TestJavaDoc{
/**
* {@snippet :
* class HelloWorld {
* public static void main(String... args) {
* System.out.println("Hello World!");// @highlight substring=" " type="highlighted"
* System.out.println("Hello World!");// @link substring=" " target="System#out"
* }
* }
* }
*/
public void errorsInLinkTag(){}
}
Actual Output (PFA)
-------------------
For highlight tag, output is correct.
For link tag, "System " is displayed over the white space.
Expected Output:
-----------------------
White space used in substring or regex handled properly with hyperlink.
----------------------
Javadoc snippet output displays class name defined in the "target" attribute of @link tag instead of white space hyperlink.
How to reproduce
------------------------
use below code and generate javadoc using jdk-18.
public class TestJavaDoc{
/**
* {@snippet :
* class HelloWorld {
* public static void main(String... args) {
* System.out.println("Hello World!");// @highlight substring=" " type="highlighted"
* System.out.println("Hello World!");// @link substring=" " target="System#out"
* }
* }
* }
*/
public void errorsInLinkTag(){}
}
Actual Output (PFA)
-------------------
For highlight tag, output is correct.
For link tag, "System " is displayed over the white space.
Expected Output:
-----------------------
White space used in substring or regex handled properly with hyperlink.
- backported by
-
JDK-8290412 Bad result for the snippet @link tag if substring/regex consists of whitespace
-
- Resolved
-
-
JDK-8291315 Bad result for the snippet @link tag if substring/regex consists of whitespace
-
- Resolved
-
-
JDK-8291437 Bad result for the snippet @link tag if substring/regex consists of whitespace
-
- Resolved
-
- blocks
-
JDK-8290243 move seeTagToContent from HtmlDocletWriter to TagletWriterImpl
-
- Resolved
-
(1 links to)