RE: [dom4j-user] ConcurrentModificationException

2004-06-23 Thread Mike Skells
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday 23 June 2004 11:31 > To: [EMAIL PROTECTED] > Subject: Re: [dom4j-user] ConcurrentModificationException > > > On Tuesday 22 June

Re: [dom4j-user] ConcurrentModificationException

2004-06-23 Thread dom4j
On Tuesday 22 June 2004 22:14, Mike Skells wrote: > Copy the list and then iterate and it shoul be OK How do you clone the list? List does not declare clone() and node.elements() does only return the List interface. new ArrayList(nodeList)? That's really ugly :-( --

RE: [dom4j-user] ConcurrentModificationException

2004-06-22 Thread Mike Skells
> [EMAIL PROTECTED] > Sent: Tuesday 22 June 2004 17:20 > To: [EMAIL PROTECTED] > Subject: [dom4j-user] ConcurrentModificationException > > > Hi! > > I posted the problem recently and actually got it working - > until now. For > some m

Re: [dom4j-user] ConcurrentModificationException

2004-06-22 Thread Maarten Coene
Do you get the same problem if you use dom4j 1.5 beta 2?? Maarten On Tue, 22 Jun 2004 [EMAIL PROTECTED] wrote: > Hi! > > I posted the problem recently and actually got it working - until now. For > some mysterious reason it suddenly does throw an > ConcurrentModifcationException in my Visitor (s

[dom4j-user] ConcurrentModificationException

2004-06-22 Thread dom4j
Hi! I posted the problem recently and actually got it working - until now. For some mysterious reason it suddenly does throw an ConcurrentModifcationException in my Visitor (second for loop): class Foo { private static final class HeisetextLegacyVisitor extends VisitorSupport {