RFR: 8231436: Fix the applicability of a no- at Target annotation type

Joel Borggrén-Franck jfranck at openjdk.java.net
Mon Feb 1 20:20:41 UTC 2021


On Thu, 28 Jan 2021 22:33:53 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> Please review this fix to add `ElementType.MODULE` to the default list of annotation targets, to allow annotations without an explicit `@Target` to be used on module declarations.

Hi Liam,

Code looks good, but I'd prefer if you file a more specific bug. Maybe also add a small test that doesn't compile before the fix?

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

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


More information about the compiler-dev mailing list