RFR: JDK-8250629: do not allow C-style array declaration in record components

Jan Lahoda jan.lahoda at oracle.com
Wed Jul 29 13:15:19 UTC 2020


Looks OK to me.

Jan

On 29. 07. 20 14:46, Vicente Romero wrote:
> ping
> 
> On 7/27/20 9:23 PM, Vicente Romero wrote:
>> Please review fix for [1] along with the corresponding CSR at [2], the 
>> fix perse is at [3]. This fix is syncing the compiler with the spec 
>> for records. Basically the latest version of the spec, see [4] doesn't 
>> allow C-style array syntax when declaring record components, so code 
>> like:
>>
>> record R(int i[]) {}
>>
>> shouldn't be accepted by the compiler.
>>
>> Thanks,
>> Vicente
>>
>> [1] Bug: https://bugs.openjdk.java.net/browse/JDK-8250629
>> [2] CSR: https://bugs.openjdk.java.net/browse/JDK-8250647
>> [3] http://cr.openjdk.java.net/~vromero/8250629/webrev.00/
>> [4] 
>> http://cr.openjdk.java.net/~gbierman/jep384/jep384-20200506/specs/records-jls.html#jls-8.10.1 
>>
>>
> 


More information about the compiler-dev mailing list