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.SP1, 1.4.0.GA
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