RFR JDK-8236598: make sure that the compiler issues an error for any modifier applied to record components

Vicente Romero vicente.romero at oracle.com
Tue Jan 7 23:32:16 UTC 2020

        yes, there is a related spec issue [1], to update the spec to
        remove the reference to `final` modifier as soon as it is
        resolved I will push this fix,


        [1] https://bugs.openjdk.java.net/browse/JDK-8236734

        On 1/7/20 5:31 PM, Maurizio Cimadamore wrote:
>         Looks good - I assume this should be pushed in jdk14?
>         Maurizio
>         On 07/01/2020 21:50, Vicente Romero wrote:
>>         As discussed offline the spec will be changed to remove the
>>         mention that the `final` modifier can redundantly be applied
>>         to record components. We already had a test in place to check
>>         that some modifiers couldn't be applied to record components
>>         but the list of modifiers being tested was not complete. I
>>         have increased the test to include all known modifiers.
>>         Please review the fix to make the test checking for modifiers
>>         complete.
>>         Thanks,
>>         Vicente
>>         http://cr.openjdk.java.net/~vromero/8236598/webrev.00/
>>         https://bugs.openjdk.java.net/browse/JDK-8236598

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20200107/3dc274d3/attachment-0001.htm>

More information about the compiler-dev mailing list