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:38:14 UTC

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

     [ https://issues.apache.org/jira/browse/COLLECTIONS-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cyrille Artho updated COLLECTIONS-515:
--------------------------------------

    Attachment: Report3.java

A JUnit test that results in a ClassCastException even though no explicit cast to String is made.

> 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
>         Attachments: Report3.java
>
>
> 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)