[lworld] setAccessible change and VarHandle test update
Karen Kinnear
karen.kinnear at oracle.com
Thu Mar 8 22:46:12 UTC 2018
Should unsafe also not be allowed to write to them - so final is final?
thanks,
Karen
> On Mar 8, 2018, at 4:42 PM, mandy chung <mandy.chung at oracle.com> wrote:
>
>
>
> On 3/8/18 12:27 PM, Paul Sandoz wrote:
>> Looks good.
>>
>
> thanks.
>
>>> On Mar 6, 2018, at 3:40 PM, mandy chung <mandy.chung at oracle.com> wrote:
>>>
>>> Any other tests should be updated?
>>>
>> There are other tests that tunnel through method handles, see VarHandleTestMethodHandleAccess*.
>>
>
> OK. I will look at them next.
>
>>> Value class is new and this is a good opportunity to enforce
>>> final is final on value classes. So setAccessible is not
>>> supported on static final and instance fields on value types.
>>>
>> Which also means the VM can treat these fields as final too. Is that being tracked somewhere?
>
> Not sure. I will talk with David and find out.
>
> Mandy
>
More information about the valhalla-dev
mailing list