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

Objects.requireNonNull(T, Supplier) doesn't specify what happens if the passed supplier is null itself

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      8

      Description

      The following JavaSE8's method :

      http://download.java.net/jdk8/docs/api/java/util/Objects.html#requireNonNull-T-java.util.function.Supplier-

      doesn't specify what will happen if the passed instance of the message supplier is itself null - would there be an NPE thrown and what message would it contain.

      Not having this specified prevents from developing conformance tests for this scenario.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: