-
Bug
-
Resolution: Fixed
-
P3
-
21, 22
-
b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8337365 | 23.0.2 | Chen Liang | P3 | Resolved | Fixed | b01 |
JDK-8337911 | 23.0.1 | Chen Liang | P3 | Resolved | Fixed | b06 |
JDK-8336351 | 23 | Chen Liang | P3 | Resolved | Fixed | b32 |
I would like to link to a specific part of this javadoc -- https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/ObjectInputStream.html -- specifically the paragraph that says "Serializable classes that require special handling ..."
It would be good enough to link to the snippet which follows, and -- joy! -- snippets support an id attribute! But, we don't explicitly write id attributes in snippets: https://github.com/openjdk/jdk/blob/605c9767291ddf1c409c3e805ffb3182899d06c2/src/java.base/share/classes/java/io/ObjectInputStream.java#L146
But but, the HTML should have an id attribute anyway, according to https://openjdk.org/jeps/413#Generated-HTML: "The generated HTML for each snippet will declare an id attribute so that the snippet can be the target of a link from elsewhere in the documentation. The value of the id attribute in the HTML will be the value of the id attribute declared in the snippet tag, if any, otherwise a default value will be used."
So, bug report: the generated HTML does not always declare an id attribute.
It would be good enough to link to the snippet which follows, and -- joy! -- snippets support an id attribute! But, we don't explicitly write id attributes in snippets: https://github.com/openjdk/jdk/blob/605c9767291ddf1c409c3e805ffb3182899d06c2/src/java.base/share/classes/java/io/ObjectInputStream.java#L146
But but, the HTML should have an id attribute anyway, according to https://openjdk.org/jeps/413#Generated-HTML: "The generated HTML for each snippet will declare an id attribute so that the snippet can be the target of a link from elsewhere in the documentation. The value of the id attribute in the HTML will be the value of the id attribute declared in the snippet tag, if any, otherwise a default value will be used."
So, bug report: the generated HTML does not always declare an id attribute.
- backported by
-
JDK-8336351 Generated HTML for snippet does not always contain an id
-
- Resolved
-
-
JDK-8337365 Generated HTML for snippet does not always contain an id
-
- Resolved
-
-
JDK-8337911 Generated HTML for snippet does not always contain an id
-
- Resolved
-
- links to
-
Commit(jdk23) openjdk/jdk/cfbfe4a4
-
Commit(master) openjdk/jdk/4166e534
-
Review(jdk23) openjdk/jdk/20167
-
Review(master) openjdk/jdk/20136
(2 links to)