[jdom-interest] IllegalAddException in sort.

Ernst de Haan ernsth at nl.euro.net
Tue May 28 08:38:25 PDT 2002


Hi Ken,

> I think this is to weak because it allows the same element to be in the
> content list of a parent multiple times. Then you cannot trust
> that changing one child of an Element won't change another.

What about a moveChild method instead ? Signature would be something like:

   public void moveChild(int srcIndex, int destIndex)
   throws IllegalArgumentException;

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