-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8261625: Add Elements.isAutomaticModule(ModuleElement)
#3382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back darcy! A progress list of the required criteria for merging this PR into |
Elements.isAutomaticModule(ModuleElement)
Webrevs
|
PS And the CSR should be reviewed as well: https://bugs.openjdk.java.net/browse/JDK-8264865 Thanks. |
@@ -0,0 +1,125 @@ | |||
/* | |||
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved. |
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.
2006 can be removed
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.
I copied a file from 2006 and then edited the result, hence I started with the 2006 year.
/csr |
@vicente-romero-oracle this pull request will not be integrated until the CSR request JDK-8264865 for issue JDK-8261625 has been approved. |
test/langtools/tools/javac/processing/model/util/elements/TestIsAutomaticMod.java
Outdated
Show resolved
Hide resolved
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.
lgtm
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.
LGTM
/integrate |
@jddarcy 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 13 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
@jddarcy Since your change was applied there have been 15 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit ccefa5e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Addition of a small convenience method, with a default implementation, to Elements.
Most of the change is testing infrastructure. The negative cases, such as named modules, are tested in the style of other annotation processing tests for Elements utilities.
An automatic module comes from a jar file, so an API reading from a jar file is needed. To avoid piping in the awkward plumbing needed to do that directly in the annotation processing tests, I updated an existing automatic modules test which uses the tool box facility. My additions to the tool box might not be the done in the most idiomatic style for that API; happy to have guidance on how to proceed better there.
Assuming this general approach is agreed to, I'll update the imports on AutomaticModules.java to condense the text of the annotation processor source.
Progress
Issue
Elements.isAutomaticModule(ModuleElement)
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3382/head:pull/3382
$ git checkout pull/3382
Update a local copy of the PR:
$ git checkout pull/3382
$ git pull https://git.openjdk.java.net/jdk pull/3382/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3382
View PR using the GUI difftool:
$ git pr show -t 3382
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3382.diff