[jdk21u] RFR: 8317300: javac erroneously allows "final" in front of a record pattern

Aleksey Shipilev shade at openjdk.org
Thu Nov 16 12:12:46 UTC 2023


Clean backport to fix the new language feature support; innocuous, but fixing it earlier is beneficial for avoiding accidents (i.e. build failures when migrating to newer JDKs).

Additional testing:
 - [x] MacOS AArch64 server fastdebug, new test fails without the fix, passes with it
 - [x] MacOS AArch64 server fastdebug, `tools/javac` pass

-------------

Commit messages:
 - Backport 5ca1beb30e35cc91bf170960fb832de6438de1de

Changes: https://git.openjdk.org/jdk21u/pull/369/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk21u&pr=369&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8317300
  Stats: 30 lines in 3 files changed: 30 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk21u/pull/369.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u.git pull/369/head:pull/369

PR: https://git.openjdk.org/jdk21u/pull/369


More information about the jdk-updates-dev mailing list