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

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Jan 7 22:31:25 UTC 2020

Looks good - I assume this should be pushed in jdk14?


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

More information about the compiler-dev mailing list