[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5146) org.hibernate.util.IdentitySet.iterator() return Map.Entry instances instead of actual elements
Gail Badner (JIRA)
noreply at atlassian.com
Tue Nov 8 01:39:19 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner updated HHH-5146:
-----------------------------
Fix Version/s: 4.0.0.next
I'd forgotten about this until I ran into it when adding some code that uses an IdentitySet. Thanks for the patch.
> org.hibernate.util.IdentitySet.iterator() return Map.Entry instances instead of actual elements
> -----------------------------------------------------------------------------------------------
>
> Key: HHH-5146
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5146
> Project: Hibernate Core
> Issue Type: Patch
> Components: core
> Affects Versions: 3.5.1
> Reporter: Nicklas Nordborg
> Assignee: Gail Badner
> Priority: Trivial
> Fix For: 4.0.0.next
>
> Attachments: patch.txt
>
>
> By accident I used the IdentitySet implementation in my code and got ClassCastException:s when iterating over it. It turns out that the iterator() method returns Map.entrySet().iterator() instead of Map.keySet().iterator(). There is also a similar problem with the toArray() methods. I provide a patch.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list