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 21:50:34 UTC 2020
    
    
  
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