Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8225583

Examine the HttpResponse.BodySubscribers for null handling and multiple subscriptions

    XMLWordPrintable

Details

    • b02

    Backports

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: