Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205247 | 11.0.1 | Maurizio Cimadamore | P4 | Resolved | Fixed | team |
The following code fails:
class Unassigned {
final int x;
Unassigned() {
(this).x = 1;
}
}
While removing parentheses make it working.
class Unassigned {
final int x;
Unassigned() {
(this).x = 1;
}
}
While removing parentheses make it working.
- backported by
-
JDK-8205247 Compiler confused by parenthesized "this" in final fields assignments
-
- Resolved
-
- relates to
-
JDK-8156180 javac accepts code that violates JLS chapter 16
-
- Closed
-