RFR: CSR JVM support for records

Harold Seigel harold.seigel at oracle.com
Wed Nov 6 18:14:05 UTC 2019


Hi Alex,

Thanks for your help and for reviewing it!

Note that the JVM does consistency check the Records attribute at class 
load time, not at first use by reflection. So, perhaps this sentence:

    Note that if no reflection is performed then the abstract JVM does
    not care about the Record attribute in any way.

to something like

    The format of the record attribute is checked even if no reflection
    is performed.

Harold

On 11/6/2019 12:44 PM, Alex Buckley wrote:
> Thanks for getting the JVMS changes attached to the CSR. I did some 
> light editing on the body of the CSR as part of trying to figure out 
> what reflection methods are being supported. It would be nice if the 
> CSR compared its support for j.l.r.RecordComponent to support for 
> other APIs like j.l.r.Parameter and j.l.Class::getAnnotations which 
> also perform consistency checking only when the API is called ... but 
> I don't want to hold it up.
>
> Alex
>
> On 11/5/2019 6:27 AM, Harold Seigel wrote:
>> Hi,
>>
>> Please review this draft of the CSR for JVM support for records.
>>
>> CSR: https://bugs.openjdk.java.net/browse/JDK-8233595
>>
>> Thanks, Harold


More information about the amber-dev mailing list