-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8253761: Wrong URI syntax printed by jar --describe-module #393
Conversation
👋 Welcome back cstein! A progress list of the required criteria for merging this PR into |
Webrevs
|
/labels remove compiler |
@AlanBateman Unknown command |
The change looks good. test/jdk/tools/jar/modularJar/Basic.java has tests for jar --describe-module and maybe we could add a test to this to make sure that it outputs the expected JAR URL. |
/label remove compiler |
@sormuras |
Tests are always good to have. Should I extend the existing |
A new assert in the describeModuleFoo test would be great, thank you! |
How do I trigger a "pre-submit testing using GitHub Actions workflow"[1] to be started for this PR? |
The workflow definition file needs to be present in your branch, but it seems to be a bit too old ( |
Rebased and squashed commits. Let's see... They're running: https://github.com/sormuras/jdk/actions/runs/289171488 |
I think the change exposes issues in a couple of tests. It looks like partialUpdateFooModuleInfo (modularJar/Basic.java) expects the wrong result, as does some of the tests in mmrjar/Basic.java. |
I can't find the
The one that fails the linked "pre-submit test" run above is already reported as https://bugs.openjdk.java.net/browse/JDK-8249095 ("Aux.java" is not a valid file name on Windows).
Something for a follow-up issue/PR? |
The tests are test/jdk/tools/jar/modularJar/Basic.java and test/jdk/tools/jar/mmrjar/Basic.java. I've verified that they will fail with the update to the jar tool so we'll need to change this as part of this PR. The tests are in the core_tools test group, which seems to be tier2. I suspect the pre-submit job is running tier1. |
I replaced all occurances of Hoping that I touched every failing assertion, as I am still struggling to set up a working JDK build environment locally. On Windows... |
@sormuras 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 more 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 8 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and 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 (@AlanBateman) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
/sponsor |
@AlanBateman @sormuras Since your change was applied there have been 8 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit f2f77f7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Relax the expected text pattern to also match the fixed URI syntax printed by jar tool since version 16-ea+19. openjdk/jdk#393
Relax the expected text pattern to also match the fixed URI syntax printed by jar tool since version 16-ea+19. openjdk/jdk#393
This commit replaces
"/!"
with"!/"
in order to generatevalid URIs when printing a module description of a modular
JAR file. A valid URI is described here: [1]
https://bugs.openjdk.java.net/browse/JDK-8253761
[1] https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/net/JarURLConnection.html
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/393/head:pull/393
$ git checkout pull/393