Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205247 | 11.0.1 | Maurizio Cimadamore | P4 | Resolved | Fixed | team |
Description
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.
Attachments
Issue Links
- 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