Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6396

Several null handling bugs in collections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • JDK
    • None
    • SVN Revision: 882389
    • Patch Available

    Description

      I've attached a patch for various correctness issues in our collections:

      • Maps with null values used to think they were equal to every other map with the same size.
      • Map.equals() and Set.equals() didn't recover from NPEs in contains().
      • singletonMap()'s entry didn't implement toString().
      • TreeMaps with natural ordering permitted a null element, if it was the first element ever added.
      • TreeSets didn't return the right status messages on add() and remove() when nulls were in play.

      Attachments

        Activity

          People

            jessewilson Jesse Wilson
            jessewilson Jesse Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: