Invariant not obeyed for private constructor
-
me (at andresteingress)
- State changed from new to hold
- Assigned user set to me (at andresteingress)
this behavior is ideational to allow GContracts to be used in frameworks like Hibernate etal. that make use of private/protected constructors to create uninitialized objects. therefore private constructors are not supported by now.
-
Thomas Han
There are other scenarios where private constructors are valid.
Private constructors might be used by static factory methods.
Ideally you would want to centralised the contract on the constructors not on the static factory method.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.