[jdk16] Integrated: 8254023: A module declaration is not allowed to be a target of an annotation that lacks an @Target meta-annotation

Guoxiong Li github.com+13688759+lgxbslgx at openjdk.java.net
Thu Dec 17 08:10:05 UTC 2020


On Wed, 16 Dec 2020 12:02:58 GMT, Guoxiong Li <github.com+13688759+lgxbslgx at openjdk.org> wrote:

> Hi all,
> 
> This patch adds `names.MODULE` to `com.sun.tools.javac.comp.Check.dfltTargetMeta` to fix this issue. And it also adds some corresponding tests.
> 
> The previous discussion is in https://github.com/openjdk/jdk/pull/622.
> 
> Best Regards.

This pull request has now been integrated.

Changeset: 41f312eb
Author:    Guoxiong Li <lgxbslgx at gmail.com>
Committer: Joel Borggrén-Franck <jfranck at openjdk.org>
URL:       https://git.openjdk.java.net/jdk16/commit/41f312eb
Stats:     180 lines in 6 files changed: 177 ins; 0 del; 3 mod

8254023: A module declaration is not allowed to be a target of an annotation that lacks an @Target meta-annotation

Reviewed-by: jfranck, vromero

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

PR: https://git.openjdk.java.net/jdk16/pull/34


More information about the compiler-dev mailing list