[jdk16] RFR: 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
Wed Dec 16 12:08:10 UTC 2020


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.

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

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

Changes: https://git.openjdk.java.net/jdk16/pull/34/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk16&pr=34&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8254023
  Stats: 180 lines in 6 files changed: 177 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk16/pull/34.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk16 pull/34/head:pull/34

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


More information about the compiler-dev mailing list