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

(coll) TreeSet.add(): specified NPE behaviour inconsistent with implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • core-libs
    • b51
    • 6
    • generic
    • generic

      CR 5045147 was closed with resolution "will not fix".
      At the same time new(updated in Mustang) specification for methods TreeSet.add(E o)
      says: "NullPointerException - if the specified element is null and this set uses natural ordering,
      or its comparator does not permit null elements".
      Hence the current spec contradicts to the implementation.
      *** (#1 of 1): [ UNSAVED ] ###@###.###

            martin Martin Buchholz
            dmiltsov Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: