[jboss-jira] [JBoss JIRA] Resolved: (JBCACHE-847) PojoCache didn't restore the Collection class reference correctly during removeObject()

Ben Wang (JIRA) jira-events at jboss.com
Thu Nov 16 01:45:41 EST 2006


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

Ben Wang resolved JBCACHE-847.
------------------------------

    Resolution: Done

Note this problem does exist in current 2.0 branch.

> PojoCache didn't restore the Collection class reference correctly during removeObject()
> ---------------------------------------------------------------------------------------
>
>                 Key: JBCACHE-847
>                 URL: http://jira.jboss.com/jira/browse/JBCACHE-847
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: PojoCache
>    Affects Versions: 1.4.0.GA, 1.4.0.SP1
>            Reporter: Ben Wang
>         Assigned To: Ben Wang
>             Fix For: 1.4.1.GA
>
>
> This is reported from a user post. Here is how to reproduce it:
>       log_.info("testRemoveProxy() ....");
>       Person test = new Person();
>       test.setName("Ben");
>       test.setAge(10);
>       ArrayList list = new ArrayList();
>       list.add("English");
>       list.add("Taiwanese");
>       test.setLanguages(list);
>       cache_.putObject("/a", test);
>       Person result = (Person)cache_.getObject("/a");
>       assertEquals(" ", test, result);
>       assertTrue("Instance of proxyclass ", result.getLanguages() instanceof ClassProxy);
>       cache_.removeObject("/a");
> // This would fail
>       assertFalse("Instance of proxyclass ", result.getLanguages() instanceof ClassProxy);
> This must be a bug introduced during the 1.4 optimization. We should restore the non-proxy reference to the languages list, for example.

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