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

Alex Menkov amenkov at openjdk.org
Thu Dec 1 20:09:53 UTC 2022


On Thu, 1 Dec 2022 20:04: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
>
> Alex Menkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   updated test to test instance final fields

The only test for final fields is vmTestbase/nsk/jdi/ObjectReference/setValue/setvalue004.
It tested only static final fields.
I added testing for instance final fields

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

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


More information about the serviceability-dev mailing list