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

ClassCastException in LazySortedMap when used with equals/transformers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 4.0
    • None
    • Collection, Map
    • None
    • Mac OS 10.9, Java 6

    Description

      When LazySortedMap is used by equals, the result is
      java.lang.ClassCastException: org.apache.commons.collections4.map.LazySortedMap cannot be cast to java.lang.String

      This seems to be odd, as the use of the different transformations should not result in internal casting to String. See the attached unit test to reproduce.

      Attachments

        1. Report3.java
          0.9 kB
          Cyrille Artho

        Activity

          People

            Unassigned Unassigned
            Telcontar Cyrille Artho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: