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

Document IllegalArgumentException and NullPointerException thrown by URLStreamHandler::parseURL and URLStreamHandler::setURL

    XMLWordPrintable

Details

    • b21

    Description

      URLStreamHandler::parseURL and URLStreamHandler::setURL may throw an IllegalArgumentException if passed malformed/illegal parameters.
      This behavior should be documented.

      Note that when these methods are called from URL constructors, the exception is later transformed into MalformedURLException by the constructor.
      We should also document (possibly in a blanket statement in URL?) that all URL constructors may also throw MalformedURLException if the underlying URLStreamHandler reject any arguments by throwing IllegalArgumentException.

      Attachments

        Issue Links

          Activity

            People

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: