Hi,
With regard to stack overflow when printing. This is a known limitation.
ToString has been made smart enough to handle self references, e.g.
import groovy.transform.*
@ToString
class Tree {
Tree left, right
}
def t1 = new Tree()
t1.left = t1
println t1
Hello,
I experienced some Issues using ToString and AutoClone on Entities
(Spring JPA).
Both can lead to endless loops / a stackoverflow, when classes reference
each other.
While it's fine for AutoClone, I think the generated toString-Method
should recognize it was already called once and