[jboss-jira] [JBoss JIRA] Updated: (JBCACHE-1110) Pojo returns null values after a local detach, even when values were set locally.
Vincent Marquez (JIRA)
jira-events at lists.jboss.org
Wed Jun 20 15:54:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBCACHE-1110?page=all ]
Vincent Marquez updated JBCACHE-1110:
-------------------------------------
Attachment: JBCACHE-1110.patch.txt
One way to fix it.
Note, applying this also causes testRemove in NewReplicatedTest to fail.
>From what I understand though, the behaviour in the test is not quite correct, as one is asserting that a remote pojo returns null after being detached on a remote cache, where it once returned a replicated value.
So assuming that behaviour isn't correct, this patch 'fixes' that also, and perhaps the test case should be changed. If I am mistaken, maybe there can be a change to the documentation explaining that a detach 'wipes' previous updates done to a pojo.
> Pojo returns null values after a local detach, even when values were set locally.
> -----------------------------------------------------------------------------------
>
> Key: JBCACHE-1110
> URL: http://jira.jboss.com/jira/browse/JBCACHE-1110
> Project: JBoss Cache
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: PojoCache
> Affects Versions: 2.0.0.CR2
> Reporter: Vincent Marquez
> Assigned To: Jason T. Greene
> Fix For: 2.0.0.GA, 2.0.0.CR4
>
> Attachments: DetachTest.java, JBCACHE-1110.patch.txt
>
>
> After detaching a Pojo from the cache, any fields that were null before attaching it, remain null, even if values were set locally while it was attached. This is due to the CachedFieldInterceptor being removed, and not having data copied over from the cache.
> Apologies if this is not a bug, but it seems peculiar that I could read a pojo locally and get one value, detach it, then get another, even though its values were set locally.
--
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