8254023: A module declaration is not allowed to be a target of an annotation that lacks an @Target meta-annotation #34
Conversation
…otation that lacks an @target meta-annotation
👋 Welcome back lgxbslgx! A progress list of the required criteria for merging this PR into |
Can you update your fork to do pre-submit tests and trigger a manual run? |
@lgxbslgx This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jbf, @vicente-romero-oracle) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Get! /integrate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
/sponsor |
@jbf @lgxbslgx Since your change was applied there have been 3 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 41f312e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
/* | ||
* @test | ||
* @bug 8254023 | ||
* @summary A module declaration is not allowed to be a target of an annotation that lacks an (at)Target meta-annotation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgxbslgx I'm confused by the "is not allowed". Isn't this testing that this is allowed without an error?
I realize that that is in the tile of JDK-8254023, but the resolution is to allow such annotations, right?
Hi all,
This patch adds
names.MODULE
tocom.sun.tools.javac.comp.Check.dfltTargetMeta
to fix this issue. And it also adds some corresponding tests.The previous discussion is in openjdk/jdk#622.
Best Regards.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk16 pull/34/head:pull/34
$ git checkout pull/34