]
Ron Sigal resolved JBREM-1244.
------------------------------
Resolution: Done
Changes applied.
Unit test: org.jboss.remoting3.test.CopyOnWriteHashMapTestCase .
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: