[jdom-interest] IllegalAddException in sort.
Alex Rosen
arosen at silverstream.com
Tue May 28 12:09:58 PDT 2002
> Looking at FilterListIterator, it checks for canAdd and canRemove, but
> doesn't do remove before add. Could this be the cause of the problem?
Should
> the relocated object be removed from it's parent at some
> strategic point before trying to re-add it?
Not sure how this would work... Would you leave some sort of placeholder at
the old location?
I couldn't think of a good way to make Collections.sort() work with our
lists. Instead, I wrote a different sort method that would work:
http://www.servlets.com/archive/servlet/ReadMsg?msgId=211785&listName=jdom-i
nterest
Alex
More information about the jdom-interest
mailing list