Examine the HttpResponse.BodySubscribers for null handling and multiple subscriptions

XMLWordPrintable

    • b02

        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)

          There are no Sub-Tasks for this issue.

              Assignee:
              Chris Hegarty
              Reporter:
              Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: