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

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • 9
    • core-libs
    • 8

      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.

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

              Created:
              Updated:
              Resolved: