RFR: JDK-8246257: Annotated record's vararg type component started to be uncompilable with JDK15b24

Jim Laskey james.laskey at oracle.com
Wed Jun 17 16:45:26 UTC 2020


+1

> On Jun 9, 2020, at 2:05 PM, Vicente Romero <vicente.romero at oracle.com> wrote:
> 
> 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