Fwd: [jdom-interest] elt.getContent().iterator().remove() - a bug?

Jason Hunter jhunter at servlets.com
Thu Oct 4 15:25:01 PDT 2001

> >From the LinkedList javadoc:
> The list-iterator is fail-fast: if the list is structurally modified at any
> time after the Iterator is created, in any way except through the
> list-iterator's own remove or add methods, the list-iterator will throw a
> ConcurrentModificationException. Thus, in the face of concurrent
> modification, the iterator fails quickly and cleanly, rather than risking
> arbitrary, non-deterministic behavior at an undetermined time in the future.
> That means my iterator will stop working after
> e.removeContent((Comment)o), ain't it?

You may be right.

> > If you want
> > to look at fixing the PartialList iterator, that'd be a fine approach
> > also.
> Who's working on FilterList?

Mostly Alex and Jools iirc.


More information about the jdom-interest mailing list