[lworld] RFR: 8375074: [lworld] vmTestbase/nsk/jdi/ModificationWatchpointEvent/valueToBe/valuetobe001/TestDescription.java fails with --enable-preview

Alex Menkov amenkov at openjdk.org
Tue Jan 27 01:01:01 UTC 2026


The test verifies that ModificationWatchpointEvent have different current and new values.
Debuggee sets different primitive values (like `Byte.MIN_VALUE/Byte.MAX_VALUE`), but for wrapper classes it assumes that `new Byte(Byte.MIN_VALUE)  != new Byte(Byte.MIN_VALUE)`, which is wrong with `--enable-preview`

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

Commit messages:
 - fix

Changes: https://git.openjdk.org/valhalla/pull/1977/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=1977&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8375074
  Stats: 17 lines in 2 files changed: 0 ins; 1 del; 16 mod
  Patch: https://git.openjdk.org/valhalla/pull/1977.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/1977/head:pull/1977

PR: https://git.openjdk.org/valhalla/pull/1977


More information about the valhalla-dev mailing list