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

Documentation of URLStreamHandlerFactory.createURLStreamHandler() doesn't mention null return value

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE REQUEST :
      From the usage of java.net.URLStreamHandlerFactory.createURLStreamHandler() in java.net.URL it is clear that createURLStreamHandler() is supposed to return null when it doesn't know how to handle the protocol. The documentation doesn't mention that; it says that it must return a URLStreamHandler instance for the specified protocol.

      JUSTIFICATION :
      The current documentation implies that a URLStreamHandlerFactory must return URLStreamHandler for every possible protocol, which doesn't make sense.


            chegar Chris Hegarty
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: