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

Vicente Romero vicente.romero at oracle.com
Tue Jul 28 01:23:04 UTC 2020

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.


[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/

More information about the compiler-dev mailing list