You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Cyrille Artho (JIRA)" <ji...@apache.org> on 2014/04/10 06:36:24 UTC

[jira] [Created] (COLLECTIONS-515) ClassCastException in LazySortedMap when used with equals/transformers

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)