-
Bug
-
Resolution: Fixed
-
P4
-
21, 22
-
b20
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8323206 | 21.0.3-oracle | Angelos Bimpoudis | P4 | Resolved | Fixed | b01 |
JDK-8322388 | 21.0.3 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
https://mail.openjdk.org/pipermail/amber-dev/2023-September/008302.html
record Foo ( int x) {}
public static void main ( String [] args ) {
Object o = args ;
switch ( o ) {
case final Foo( int x) -> {} // oops !
default -> {}
}
}
record Foo ( int x) {}
public static void main ( String [] args ) {
Object o = args ;
switch ( o ) {
case final Foo( int x) -> {} // oops !
default -> {}
}
}
- backported by
-
JDK-8322388 javac erroneously allows "final" in front of a record pattern
- Resolved
-
JDK-8323206 javac erroneously allows "final" in front of a record pattern
- Resolved
- csr for
-
JDK-8320789 javac erroneously allows "final" in front of a record pattern
- Closed
- links to
-
Commit openjdk/jdk21u-dev/ee7748a3
-
Commit openjdk/jdk/5ca1beb3
-
Review openjdk/jdk21u-dev/5
-
Review openjdk/jdk21u/369
-
Review openjdk/jdk/15997
(3 links to)