On Thu, 1 Dec 2022 20:04:54 GMT, Alex Menkov <amen...@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

test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/setValue/setvalue004t.java
 line 54:

> 52:     static final char    iCharFld = 'a';
> 53:     static final boolean iBooleanFld = false;
> 54:     static final String  iStrFld = "instance field";

I don't think you meant for these fields to be static.

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

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

Reply via email to