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

java.net.http.WebSocket.newBuilder(URI uri, Listener listener) doesn't state NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • None
    • 9
    • core-libs

      The API behave correctly, but in its javadoc it states "
      Throws:
        IllegalArgumentException - if the uri is not a WebSocket
        URISecurityException - if running under a security manager and the caller does not have permission to access the default HttpClient"

      I think it is necessary to state if NPE will be thrown if null is specified

            prappo Pavel Rappo
            xiaofeya Xiaofeng Yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: