Non-roots can become final after construction
Issue #167
wontfix
Non-root subtypes of root nodes are set to final via the super-constructor of the root type. This should not happen.
This bug can be fixed by not setting the final-flag in the constructor of a root type that has non-root subtypes.
Comments (4)
-
-
reporter - changed title to Non-roots can become final after construction
- changed component to code generation
Edit title to better describe the problem.
-
Might need coordination with #234?
-
reporter - changed status to wontfix
Final flags are not used with circular NTA rewrites. Our goal is to eventually remove legacy rewrites in favor of circular NTA rewrites which makes this issue obsolete. I'm closing this now so we can focus on things we are actually working on.
- Log in to comment
If you have a root type that is not abstract and has non-root subtypes, wouldn't the proposed fix mean that roots of that type would not become final?
Another possibility would be to unset the flag in the constructors of the non-root subclasses of root types.