Describe the problem related to the feature request
static final Reg<XXX> XXX = Reg().xxxType(XXXObject::new).submitTo(registry);
class XXX{
XXX(){
super(XXX.getType());
}
}
It's bad to have a circular reference in our class constructor.
Self-reference constructor Example:
static final Reg<XXX> XXX = Reg().xxxType(XXXObject::new).submitTo(registry);
class XXX{
XXX(XXXType type){
super(type); // No Reference to Registry!
}
}
Describe the problem related to the feature request
It's bad to have a circular reference in our class constructor.
Self-reference constructor Example:
Describe the solution you'd like
None
Describe alternatives you've considered
No response
Additional context
No response