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

Vicente Romero vicente.romero at oracle.com
Wed Jun 10 19:23:17 UTC 2020


ping

On 6/9/20 1:05 PM, 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