[jdom-interest] addAll(Collection c) throws out of bounds exception
Jason Hunter
jhunter at collab.net
Mon Mar 19 12:04:37 PST 2001
Jochen Strunk wrote:
>
> List children = element.getChildren();
> children.addAll(newChildren);
>
> throws an IndexOutOfBoundsException.
>
> This only happens when having mixed content because then
> backingList.indexOf(getLast()) in addAll(Collection c)
> might exceed the size of partial list.
Care to submit a patch? My focus is off PartialList since we're
entirely reimplementing it, but if you have a patch I'll integrate it.
-jh-
More information about the jdom-interest
mailing list