[jdk17u-dev] RFR: 8317264: Pattern.Bound has `static` fields that should be `static final`.
Roland Mesde
duke at openjdk.org
Thu Nov 13 20:00:20 UTC 2025
Backporting JDK-8317264: Pattern.Bound has static fields that should be static final. It was an oversight that final was omitted. The fields are never assigned after initialization. final leads to shorter bytecode.
Ran GHA Sanity Checks (passed) and related test (passed). Patch is clean.
-------------
Commit messages:
- Backport ecb5e8a03f67c92d7956201de1fa7d07cc6af9cb
Changes: https://git.openjdk.org/jdk17u-dev/pull/4179/files
Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4179&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8317264
Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/4179.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4179/head:pull/4179
PR: https://git.openjdk.org/jdk17u-dev/pull/4179
More information about the jdk-updates-dev
mailing list