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

Chris Plummer cjplummer at openjdk.org
Wed Nov 23 18:52:34 UTC 2022


On Mon, 21 Nov 2022 22:58:54 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> 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

IntelliJ currently does not allow setting final fields. I'm checking with a team member to make sure they are ok with the spec change.

As mentioned earlier, we already discussed this with an Eclipse team member, and there was no objection to the proposed spec change. Eclipse currently does allow setting final fields, but you have to click through a warning dialog first. Eclipse can continue with this behavior if they wish. There is no requirement for them to be spec compliant.

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

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


More information about the serviceability-dev mailing list