[jbosscache-issues] [JBoss JIRA] (JBCACHE-396) CachedSetImpl overwrites elements if add() is called after a remove().

Scott Marlow (JIRA) jira-events at lists.jboss.org
Mon Aug 6 16:28:07 EDT 2012


     [ https://issues.jboss.org/browse/JBCACHE-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow closed JBCACHE-396.
--------------------------------


    
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosscache-issues mailing list