Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-364

DualTreeBidiMap.readObject() uses wrong comparator to create reverseMap

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • BidiMap
    • None

    Description

      DualTreeBidiMap.readObject() uses the wrong comparator to create reverseMap. The code reads:

      reverseMap = new TreeMap(comparator);

      it should read:

      reverseMap = new TreeMap(valueComparator);

      Note: this was found when trying to fix generics warnings.

      Attachments

        Activity

          People

            sebb Sebb
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: