-
Notifications
You must be signed in to change notification settings - Fork 115
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
[22] JEP 447: Statements before super(...) (Preview) #1637
Comments
Taking a shot at this - Doing an initial investigation for now. Random Thoughts: ConstructorBody: now becomes ConstructorBody: However, in our java.g, the relevant code is: Essentially, the error checking for ExplicitConstructionInvocation is handled later in the pipeline. My initial thought here is that we may not have to change grammar/java.g but rather handle these cases later [yes, adhering to the principle of minimal/no grammar change if possible] |
eclipse-jdt#1637 - WIP - ONLY OUTLINE OF TESTCASES - DONOT MERGE NOW
Compiler support for this is done via #2063. Any issues found will be addressed via additional PRs. And for the record, was able to do without an explicit grammar change as envisaged earlier. |
IDE support will be done via issue #2083. Closing this. |
https://openjdk.org/jeps/447
In constructors in the Java programming language, allow statements that do not reference the instance being created to appear before an explicit constructor invocation.
Latest spec changes: https://cr.openjdk.org/~gbierman/jep447/latest/
Will have direct impact on the compiler and friends
The Compiler Support
The text was updated successfully, but these errors were encountered: