RFR: JDK-8246257: Annotated record's vararg type component started to be uncompilable with JDK15b24
Vicente Romero
vicente.romero at oracle.com
Tue Jun 9 17:05:17 UTC 2020
Hi,
Please review fix for [1] at [2]. If a record component is declared as a
varargs, then the corresponding argument in the canonical constructor
needs to be a varargs too. This assertion is failing in the case the
record component has annotations. This is because the corresponding
array type was being recreated to attach the annotations but the fact
that it was a varargs wasn't being preserved. This patch fixes that issue,
Thanks,
Vicente
[1] https://bugs.openjdk.java.net/browse/JDK-8246257
[2] http://cr.openjdk.java.net/~vromero/8246257/webrev.00/
More information about the compiler-dev
mailing list