[jdom-interest] How to "crash" JDOM, part 1

Jason Hunter jhunter at collab.net
Wed Aug 30 09:46:09 PDT 2000

trebor.a.rude at lmco.com wrote:
> The problem here isn't getCopy(), it's that he added the copy as 
> a child of itself, which shouldn't be allowed.

You can add a copy of an element as a child to itself.  Not a shallow
copy, but a deep copy, and this is (at least supposed to be) a deep

  / \
 b   c


  / \  \
 b   c  a
       / \
      b   c


More information about the jdom-interest mailing list