[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2476) PersistentMap.put() incorrect on uninitialized, non-extra-lazy map

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Mar 7 14:22:31 EST 2007


PersistentMap.put() incorrect on uninitialized, non-extra-lazy map
------------------------------------------------------------------

         Key: HHH-2476
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2476
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.2    
    Reporter: Steve Ebersole
 Assigned to: Steve Ebersole 
     Fix For: 3.2.3


Essentially, an uninitialized PersistentMap loses the first put() into it if defined as non-extra-lazy.  

The underlying cause is the code in PersistentMap#put() which attempts to readElementByIndex().  In the case of non-extra-lazy, readElementByIndex() returns the UNKNOWN marker object which is supposed to be used to signal that the delegate map is now initialized and to read the element directly from the map.  Long story short, PersistentMap#put() does not properly check the return value from readElementByIndex() and react accordingly.

-- 
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