RFR: JDK-8246257: Annotated record's vararg type component started to be uncompilable with JDK15b24
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Jun 17 16:29:25 UTC 2020
Looks good to me.
-- Jon
On 6/9/20 10:05 AM, Vicente Romero 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