commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (COLLECTIONS-515) ClassCastException in LazySortedMap when used with equals/transformers
Date Fri, 27 Nov 2015 21:48:12 GMT

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

Thomas Neidhart closed COLLECTIONS-515.
---------------------------------------

> 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.3.4#6332)

Mime
View raw message