[
http://jira.jboss.com/jira/browse/JBAS-2225?page=all ]
Brian Stansberry resolved JBAS-2225.
------------------------------------
Resolution: Done
ImmutableArrayList now uses delegation to the original array list, and added a
writeReplace() impl that returns the original list, so what gets serialized is unchanged
from before.
FCI.getTargets() should be Immutable
------------------------------------
Key: JBAS-2225
URL:
http://jira.jboss.com/jira/browse/JBAS-2225
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.0.3RC2
Reporter: Adrian Brock
Assigned To: Brian Stansberry
Fix For: JBossAS-4.0.5.CR1
The targets returned from the FamilyClusterInfoImpl.getTargets() should not be modified,
otherwise you can cause ConcurrentModificationException.
To better trap people introducing errors in this area, make a subclass of ArrayList
called ImmutableArrayList and return an implementation of this class from getTargets.
--
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