[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: RFR: 8280798: com.sun.jdi.ObjectReference::setValue spec should prohibit any final field modific
From:       Alan Bateman <alanb () openjdk ! org>
Date:       2022-11-30 16:37:07
Message-ID: GHSOSnNcZ6iHdUF1e45nY1ngGiEzf_i_QQqRSEVr6wo=.591e4657-2633-468b-a842-9d67bd8b58da () github ! com
[Download RAW message or body]

On Tue, 29 Nov 2022 20:18:30 GMT, Alex Menkov <amenkov@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 IAE description to mention final fields

One other thing to add is that we should survey the existing tests to make sure that \
there are tests to ensure IAE is thrown for both static and instance fields when they \
are final.

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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic