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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: