[jdom-interest] Moving elements
Alex Rosen
arosen at novell.com
Fri May 2 10:38:44 PDT 2003
True. That doesn't prevent you from calling detach() on a particular
child though.
Alex
>>> Jason Hunter <jhunter at servlets.com> 5/2/2003 1:33:52 PM >>>
Alex Rosen wrote:
>
> "It's impossible to ensure that a content given back from a
getContent will be not removed later."
>
> That's the case with or without this proposed change - it's the
design of JDOM that the returned lists are live in this way.
Actually, you can wrap the List with Collections.unmodifiableList().
That works regardless of whether we auto-detach or not.
-jh-
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list