Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b32
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236884 | 15 | Vicente Arturo Romero Zaldivar | P3 | Resolved | Fixed | b06 |
JDK-8237415 | 14.0.1 | Unassigned | P3 | Resolved | Fixed | b01 |
Description
this code is accepted by javac:
record Test() {
static final int x;
public static void main(String[] args) {
System.out.println(x);
}
}
if we change `record Test()` for `class Test` then it is rejected
reported by Tagir in amber-dev
record Test() {
static final int x;
public static void main(String[] args) {
System.out.println(x);
}
}
if we change `record Test()` for `class Test` then it is rejected
reported by Tagir in amber-dev
Attachments
Issue Links
- backported by
-
JDK-8236884 static final fields without initializer are accepted by javac
-
- Resolved
-
-
JDK-8237415 static final fields without initializer are accepted by javac
-
- Resolved
-