RFR: 8280798: com.sun.jdi.ObjectReference::setValue spec should prohibit any final field modification

Alex Menkov amenkov at openjdk.org
Mon Nov 21 23:08:36 UTC 2022


com.sun.jdi.ObjectReference::setValue spec says that final static fields cannot be modified, but openjdk implementation throws IllegalArgumentException for any final fields (static or instance).

The fix updates the spec to prohibit any final field modification
CSR: JDK-8281652

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

Commit messages:
 - Updated ObjectReference.setValue spec

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

PR: https://git.openjdk.org/jdk/pull/11279


More information about the serviceability-dev mailing list