-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reactor extending itself causes StackOverflowError #907
Comments
This is because InstantiationGraph no longer detects cycles. Perhaps because of porting to Java? |
ok, based on results gathered from inserting print statements, seems like Below is the function public static List<Parameter> allParameters(Reactor definition) {
List<Parameter> result = new ArrayList<>();
List<ReactorDecl> superClasses = convertToEmptyListIfNull(definition.getSuperClasses());
for (ReactorDecl base : superClasses) {
result.addAll(allParameters(toDefinition(base)));
}
result.addAll(definition.getParameters());
return result;
} |
The situation is even worse than this. Not only are circular extensions not detected, but when multiple extensions include duplicates, the result is invalid. For example, then following reactor
I'm working on a fix. |
These two problems should be solved with PR #962. |
minimal example
output
The text was updated successfully, but these errors were encountered: