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

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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: