-
Bug
-
Resolution: Fixed
-
P3
-
11, 12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207428 | 11.0.2 | Chris Hegarty | P3 | Resolved | Fixed | b01 |
JDK-8207643 | 11.0.1 | Chris Hegarty | P3 | Resolved | Fixed | b02 |
JDK-8207397 | 11 | Chris Hegarty | P3 | Resolved | Fixed | b23 |
src/java.net.http/share/classes/java/net/http/HttpResponse.java, lines 1190,1191
* Returns a response subscriber which publishes the response body
* through a {@link Publisher Publisher<List<ByteBuffer>>}.
Although it is not clearly stated in the spec, it can reasonably be inferred that the "label" in an {@link} tag is HTML, not plain text. This inference is backed up by the current implementation.
That implies that it is incorrect to use unescaped < > for the type parameters. The @link should be using < and > instead.
The current representation shows up as bad HTML in the generated API docs. See the early access docs for JDK 11
https://download.java.net/java/early_access/jdk11/docs/api/java.net.http/java/net/http/HttpResponse.BodySubscribers.html#ofPublisher%28%29
* Returns a response subscriber which publishes the response body
* through a {@link Publisher Publisher<List<ByteBuffer>>}.
Although it is not clearly stated in the spec, it can reasonably be inferred that the "label" in an {@link} tag is HTML, not plain text. This inference is backed up by the current implementation.
That implies that it is incorrect to use unescaped < > for the type parameters. The @link should be using < and > instead.
The current representation shows up as bad HTML in the generated API docs. See the early access docs for JDK 11
https://download.java.net/java/early_access/jdk11/docs/api/java.net.http/java/net/http/HttpResponse.BodySubscribers.html#ofPublisher%28%29
- backported by
-
JDK-8207397 Bad HTML in {@link} in HttpResponse.BodySubscribers.ofPublisher
-
- Resolved
-
-
JDK-8207428 Bad HTML in {@link} in HttpResponse.BodySubscribers.ofPublisher
-
- Resolved
-
-
JDK-8207643 Bad HTML in {@link} in HttpResponse.BodySubscribers.ofPublisher
-
- Resolved
-
- relates to
-
JDK-8211349 Bad HTML in {@link} for HttpResponse.BodyHandlers.ofPublisher
-
- Closed
-