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
copy.
a
/ \
b c
becomes
a
/ \ \
b c a
/ \
b c
-jh-