Details
-
Bug
-
Resolution: Fixed
-
P4
-
12, 13
-
b02
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8271488 | 11.0.14-oracle | Thejasvi Voniadka | P4 | Resolved | Fixed | b01 |
JDK-8271558 | 11.0.13 | Zhengyu Gu | P4 | Resolved | Fixed | b01 |
Description
The convenience BodySubscriber implementations in HttpResponse.BodySubscribers do not consistently throw NPE when passed a null value. For example:
jshell> var s = java.net.http.HttpResponse.BodySubscribers.ofInputStream()
s ==> jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream@6d21714c
jshell> s.onSubscribe(null)
jshell> var s = java.net.http.HttpResponse.BodySubscribers.ofInputStream()
s ==> jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream@6d21714c
jshell> s.onSubscribe(null)
Attachments
Issue Links
- backported by
-
JDK-8271488 Examine the HttpResponse.BodySubscribers for null handling and multiple subscriptions
- Resolved
-
JDK-8271558 Examine the HttpResponse.BodySubscribers for null handling and multiple subscriptions
- Resolved
- relates to
-
JDK-8226602 Test convenience reactive primitives from java.net.http with RS TCK
- Resolved