It is possible to cause stack overflow with custom groups sequence for beans with circular reference.
As seen in my test case (below) validation of object graph with a loop might blow the stack.
Supposedly, there are two reasons:
1.
2. Ordering plays it is role.
It is possible to workaround issue by re-arranging groups {code:java} @GroupSequence({ Magic.class,YourAnnotatedBean.class}) public class YourAnnotatedBean { } {code}
Tet case - https://github.com/hibernate/hibernate-test-case-templates/pull/26 |
|