[jboss-jira] [JBoss JIRA] Updated: (JBCACHE-1016) Changes in Serializable objects are never replicated

Jacek Halat (JIRA) jira-events at lists.jboss.org
Thu Mar 29 16:40:05 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBCACHE-1016?page=all ]

Jacek Halat updated JBCACHE-1016:
---------------------------------

    Attachment: PojoCacheSerializableTest.zip

JUnit test to this issue

> Changes in Serializable objects are never replicated
> ----------------------------------------------------
>
>                 Key: JBCACHE-1016
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-1016
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: PojoCache
>    Affects Versions: 1.4.1.SP3
>         Environment: Windows XP, jdk1.5.0_06
>            Reporter: Jacek Halat
>         Assigned To: Jason T. Greene
>         Attachments: PojoCacheSerializableTest.zip
>
>
> Assume that we have Serializable object stored in PojoCache. (using putObject() method)
> If you get object from cache (using getObject() method), modify any field (non-transient) in object and store again object under this same node, changes made in obejct would be never replicated to another cache instances in cluster. 
> Probably in method TreeCacheAopDelegate._putObject() has incorrect condition:
>       if(oldValue == obj) return obj;  // value already in cache. return right away.
> If obj was loaded from cache, this condition is always true and changes made in object would never be replicated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list