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

java.util.Objects.compare(...): unspecified NullPointerException for null comparator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7
    • 7
    • core-libs
    • None
    • generic
    • generic

      The spec for java.util.Objects.compare(T a, T b, Comparator<? super T> c) should specify that the method throws NullPointerException if comparator is null.

            darcy Joe Darcy
            dmiltsov Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: