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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 6
    • Component/s: 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 ] ###@###.###

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: