CachedSetImpl overwrites elements if add() is called after a
remove().
----------------------------------------------------------------------
Key: JBCACHE-396
URL:
https://issues.jboss.org/browse/JBCACHE-396
Project: JBoss Cache
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Legacy POJO Cache
Affects Versions: 1.2.4, 1.2.4SP1
Reporter: Brian Stansberry
Assignee: Scott Marlow
Fix For: 1.2.4SP2, 1.3.0.GA
CachedSetImpl.add() is using size() to determine the last portion of a new element's
Fqn. This is only valid if a Set never shrinks and re-expands; if it ever does a newly
added element can get the same Fqn as an existing one and overwrite it.
CacheSetAopTest.testRemoveAndAdd() demonstrates the bug.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: