[jboss-remoting-issues] [JBoss JIRA] Created: (JBREM-1244) CopyOnWriteHashMap.remove() and replace() with current value arguments do not test against current value

Ron Sigal (JIRA) jira-events at lists.jboss.org
Tue Aug 31 11:47:12 EDT 2010


CopyOnWriteHashMap.remove() and replace() with current value arguments do not test against current value
--------------------------------------------------------------------------------------------------------

                 Key: JBREM-1244
                 URL: https://jira.jboss.org/browse/JBREM-1244
             Project: JBoss Remoting
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 3.1.0.Beta2
            Reporter: Ron Sigal
            Assignee: Ron Sigal
            Priority: Minor
             Fix For: 3.1.0.Beta3


In org.jboss.remoting3.CopyOnWriteHashMap, the methods

     public boolean remove(final Object key, final Object value);

and 

  public boolean replace(final K key, final V oldValue, final V newValue);

are meant to update the map only if the current value associated with key is equal to value (resp. oldvalue).  However, they do not test the current value.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-remoting-issues mailing list