RFR: 8254784: javac should reject records with @SafeVarargs applied to varargs record component [v2]

Vicente Romero vromero at openjdk.java.net
Mon Dec 7 16:49:16 UTC 2020


On Fri, 13 Nov 2020 12:43:55 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Vicente Romero has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>> 
>>  - manual merge with master
>>  - 8254784: javac should reject records with @SafeVarargs applied to varargs record component
>
> Seems sensible. A possible alternative would be to err immediately when we see (e.g. in TypeEnter?) that a record header contains a SafeVarargs annotation, in which case we know we can't support it.

thanks for the approval, yes we could have done what you are proposing too

-------------

PR: https://git.openjdk.java.net/jdk/pull/690


More information about the compiler-dev mailing list