[jdk21u-dev] RFR: 8333805: Replaying compilation with null static final fields results in a crash

Satyen Subramaniam ssubramaniam at openjdk.org
Wed Mar 26 20:18:22 UTC 2025


Backporting JDK-8333805: Replaying compilation with null static final fields results in a crash. This fix has two changes: fixing fields by leaving out the "null" string when the field is null and setting the length to -1 for a null array. Adds test to confirm this functionality.

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

Commit messages:
 - Backport fa401f37dffe7bde27e562065dfd24381d5237cc

Changes: https://git.openjdk.org/jdk21u-dev/pull/1550/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1550&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8333805
  Stats: 156 lines in 3 files changed: 112 ins; 21 del; 23 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1550.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1550/head:pull/1550

PR: https://git.openjdk.org/jdk21u-dev/pull/1550


More information about the jdk-updates-dev mailing list