[jboss-jira] [JBoss JIRA] Resolved: (JBAS-2225) FCI.getTargets() should be Immutable

Brian Stansberry (JIRA) jira-events at jboss.com
Mon Jul 31 17:57:11 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBAS-2225?page=all ]

Brian Stansberry resolved JBAS-2225.
------------------------------------

    Resolution: Done

> 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

        



More information about the jboss-jira mailing list