-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently two generators can be declared such as:
@Generator
public interface AGenerator {
default A generate(B b) {
return new A(b);
}
}
@Generator
public interface BGenerator {
default B generate(A a) {
return new B(a);
}
}Creation of such generators will, at best, result in a StackOverflowException.
Precautions should be taken to prevent this situations at compile time and force users to modify such paradoxical declarations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request