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
8277165: jdeps --multi-release --print-module-deps fails if module-info.class in different versioned directories #6530
Conversation
… a different versioned directory
👋 Welcome back mchung! A progress list of the required criteria for merging this PR into |
/issue add JDK-8277564,JDK-8277166 |
@mlchung Adding additional issue to issue list: |
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. Thanks for fixing.
@mlchung 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 15 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 |
Webrevs
|
/label remove compiler |
@mlchung |
/issue add JDK-8277123 |
@mlchung |
/issue remove JDK-8277564 |
@mlchung |
} else if (t instanceof Error) { | ||
throw (Error)t; | ||
} else { | ||
throw new Error(e); |
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.
A minor suggestion is that you could avoid the casts with:
Throwable cause = ...
if (cause instanceof RuntimeException e) {
throw e;
} else if (cause instanceof Error e) {
throw e;
} else {
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.
Fixed. Thanks for reminding.
Hello Mandy, one small issue - |
/integrate |
Going to push as commit 7e54d06.
Your commit was automatically rebased without conflicts. |
@jaikiran Sorry, I missed your comment about the copyright year update. I will update them in other jdeps fix. |
Mailing list message from Jaikiran Pai on core-libs-dev: On 26/11/21 7:32 am, Mandy Chung wrote:
That sounds fine, Mandy. Thank you. -Jaikiran |
jdeps intends to report an error if there are multiple versions of the same class being parsed. module-info.class should be excluded from such detection.
This patch also fixes a data race in
VersionHelper::set
and also unwraps theExecutionException
when FutureTask of parsing the classes throws an exception to reportMultiReleaseException
properly.Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6530/head:pull/6530
$ git checkout pull/6530
Update a local copy of the PR:
$ git checkout pull/6530
$ git pull https://git.openjdk.java.net/jdk pull/6530/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6530
View PR using the GUI difftool:
$ git pr show -t 6530
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6530.diff