Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8324795 | repo-valhalla | Vicente Arturo Romero Zaldivar | P4 | Resolved | Fixed |
We would amend JLS 8.8.7 as follows:
- Production is amended to:
ConstructorBody:
{ [ BlockStatements ] [ ExplicitConstructorInvocation ] [ BlockStatements ] }
- Restriction about first statement is relaxed to apply to the explicit ctor invocation, wherever it resides.
- s/begin with/include/
- Add note (somewhere) that in the first BlockStatement, `this` is DU, and in the second, `this` is DA.
- Clarify that a return statement may only be used in the second BlockStatements.
- backported by
-
JDK-8324795 Compiler implementation for Statements before super()
- Resolved
- csr for
-
JDK-8302041 Permit additional statements before this/super in constructors
- Closed
- duplicates
-
JDK-8302038 compiler implementation for statements before super()
- Closed
-
JDK-8193760 allow code in a constructor before the call to the super constructor
- Closed
-
JDK-8301649 Compiler allows class type parameters inside super()'s static context
- Closed
- relates to
-
JDK-8325805 Compiler Implementation for Flexible Constructor Bodies (Second Preview)
- Resolved
-
JDK-8321207 javac is not accepting correct code
- Resolved
-
JDK-8300786 JEP 447: Statements before super(...) (Preview)
- Closed
- links to
-
Commit openjdk/jdk/12e983a7
-
Commit openjdk/valhalla/256f8ad7
-
Review openjdk/jdk/13656
-
Review openjdk/valhalla/981