Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8136831 Undefined null behavior in ClassLoader.getResourceXXXX()
  3. JDK-8170294

Release Note: Spec update of ClassLoader.getResourceXXXXX() : @throws NPE

XMLWordPrintable

    • Verified

      The spec of the following `java.lang.ClassLoader` methods for locating a resource by name are updated to throw `NullPointerException` when the specified name is null:
      ```
        getResource(String)
        getResourceAsStream(String)
        getResources(String)
      ```
      Custom class loader implementations that override these methods should be updated accordingly to conform to this spec.


       

            bchristi Brent Christian
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: