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

SecurityException thrown by URLStreamHandler::setURL in case of handler mismatch could be changed into IllegalArgumentException

XMLWordPrintable

      This is a specification change that will require a CSR but the compatibility impact should be low.

      It is strange that URLStreamHandler::setURL throws SecurityException when a handler mismatch is detected. It would make more sense to throw IllegalArgumentException in this case.

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

              Created:
              Updated: