commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cyrille Artho (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COLLECTIONS-515) ClassCastException in LazySortedMap when used with equals/transformers
Date Thu, 10 Apr 2014 04:36:24 GMT
Cyrille Artho created COLLECTIONS-515:
-----------------------------------------

             Summary: ClassCastException in LazySortedMap when used with equals/transformers
                 Key: COLLECTIONS-515
                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-515
             Project: Commons Collections
          Issue Type: Bug
          Components: Collection, Map
    Affects Versions: 4.0
         Environment: Mac OS 10.9, Java 6
            Reporter: Cyrille Artho


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message