[jboss-jira] [JBoss JIRA] Closed: (JBAS-6138) ImmutableArrayList improperly mixes delegation and subclassing
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Fri Oct 24 15:26:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBAS-6138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry closed JBAS-6138.
----------------------------------
Resolution: Done
> ImmutableArrayList improperly mixes delegation and subclassing
> --------------------------------------------------------------
>
> Key: JBAS-6138
> URL: https://jira.jboss.org/jira/browse/JBAS-6138
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Clustering
> Affects Versions: JBossAS-4.2.0.GA, JBossAS-4.2.1.GA, JBossAS-4.2.2.GA, JBossAS-4.2.3.GA
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
> Fix For: JBossAS-4.2.4.GA
>
>
> The org.jboss.ha.framework.interfaces.ImmutableArrayList class subclasses ArrayList (for API compatibilty reasons) but delegates most calls to a wrapped ArrayList. Except for calls to iterator() and listIterator() which call super.listIterator(). These superclass calls are incorrect; they should be delegated as well.
> This bug leads to incorrect iterator behavior on OpenJDK, whose ArrayList implementation is different from the Sun JDK's in ways that expose the invalidity of calling the superclass method. The calls work on Sun by pure luck.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list