-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: PersistentMap.remove() bug on uninitialized, non-extra-lazy
PostPosted: Thu May 15, 2008 8:56 am 
Newbie

Joined: Tue Feb 21, 2006 12:22 pm
Posts: 16
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3223

Please have a look at PersistentMap.remove() and compare it to PersistentMap.put(). The put() was fixed HHH-2476 and the same fix needs to be applied to remove().

Please refer to HHH-2584 for the patch: http://opensource.atlassian.com/project ... e/HHH-2584

Copied from HHH-2584:
Essentially, an uninitialized PersistentMap loses the first remove() into it if defined as non-extra-lazy.

The underlying cause is the code in PersistentMap#remove() 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 remove the element directly from the map. Long story short, PersistentMap#remove() does not properly check the return value from readElementByIndex() and react accordingly.

--------------------------------------------------

Could someone with Hibernate commit access PLEASE fix this bug? It would take all of 1 minute to fix this issue...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.