[jdom-interest] IllegalAddException in sort.
Ed Hurst-Frost
edward at hurst-frost.net
Tue May 28 07:13:57 PDT 2002
Erm, no. Didn't go that far, sorry. Smack hand. I don't suppose someone's
got it all ready to roll and could try it for me?
ContentList:
protected void add(int index, Element element) {
if (element.getParent() != null && element.getParent() != parent) {
throw new IllegalAddException(
"The element already has an existing parent
\""+element.getParent().getQualifiedName() + \"");
}
Ed
----- Original Message -----
From: "Ernst de Haan" <ernsth at nl.euro.net>
To: "Ed Hurst-Frost" <edward at hurst-frost.net>; "jdom-interest"
<jdom-interest at jdom.org>
Sent: Tuesday, May 28, 2002 3:03 PM
Subject: Re: [jdom-interest] IllegalAddException in sort.
> Hi Ed,
>
> > the current one. Would it be reasonable to add the 'same parent' test to
> > the add() method? It works for me.
>
> Have you tested this with the JDOM test suite too?
>
> Ernst
>
> --
> Ernst de Haan
> EuroNet Internet B.V.
>
> "Come to me all who are weary and burdened
> and I will give you rest" -- Jesus Christ
More information about the jdom-interest
mailing list