[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5146) org.hibernate.util.IdentitySet.iterator() return Map.Entry instances instead of actual elements

Nicklas Nordborg (JIRA) noreply at atlassian.com
Thu Apr 22 05:19:34 EDT 2010


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: Bug
          Components: core
            Reporter: Nicklas Nordborg
            Priority: Trivial
         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.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list