Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8145006 Collections.asLifoQueue(null) doesn't throw NPE as specified
  3. JDK-8176414

Release Note: Collections.asLifoQueue(null) now throws NPE as specified

XMLWordPrintable

      Before the JDK 9 release, invocation of the method Collections.asLifoQueue with a null argument value would not throw a NullPointerException as specified by the class documentation. Instead a NullPointerException would be thrown when operating on the returned Queue. The JDK 9 release corrects the implementation of Collections.asLifoQueue to conform to the specification. Behavioral compatibility is not preserved but it is expected that the impact will be minimal given analysis of existing usages.

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: