8269486: CallerAccessTest fails for non server variant #159
8269486: CallerAccessTest fails for non server variant #159
Conversation
|
Webrevs
|
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.
This generally seems fine to me (assuming the Platform utility methods do as would be expected).
One suggestion below.
Thanks,
David
String libDir = libPath.toAbsolutePath().toString(); | ||
String serverDir = libPath.resolve("server").toAbsolutePath().toString(); | ||
String libDir = Platform.libDir().toString(); | ||
String serverDir = Platform.jvmLibDir().toString(); |
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.
Perhaps vmDir
would be a more suitable name?
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.
Makes sense, thank you.
@mychris This change now passes all automated pre-integration checks. 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 17 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. 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 (@dholmes-ora, @tstuefe, @mlchung, @JornVernee) but any other Committer may sponsor as well.
|
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 reasonable (Davids suggestion sounds good).
..Thomas
Thanks for the reviews.
Yes, the utility method does the switch between "bin" and "lib" for windows and non-windows jdk17/test/lib/jdk/test/lib/Platform.java Lines 346 to 350 in e4c5446
and it does the switch for the variant jdk17/test/lib/jdk/test/lib/Platform.java Lines 361 to 369 in e4c5446
I only have a linux setup, so I tested this with a client and a server VM only on linux. |
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 only have a linux setup, so I tested this with a client and a server VM only on linux.
The test also passes on my Windows machine with a server VM.
Mailing list message from David Holmes on core-libs-dev: On 29/06/2021 12:52 am, Christoph G?ttschkes wrote:
You can also trigger it manually. Go to your fork, go to the Actions Cheers, |
1 similar comment
Mailing list message from David Holmes on core-libs-dev: On 29/06/2021 12:52 am, Christoph G?ttschkes wrote:
You can also trigger it manually. Go to your fork, go to the Actions Cheers, |
Thanks for the reviews and testing. |
/sponsor |
Going to push as commit 1da5d4b.
Your commit was automatically rebased without conflicts. |
Hi,
please review this small fix. The test case uses a custom launcher and before launching the JVM, it adds the "lib" and "lib/server" directories to the environment variable which controls the native library search path. For non server variants, the second directory is not called "lib/server", but "lib/client", for instance.
I changed the test case to use the utility methods in
Platform
to get the correct paths, dependent on the VM variant.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/159/head:pull/159
$ git checkout pull/159
Update a local copy of the PR:
$ git checkout pull/159
$ git pull https://git.openjdk.java.net/jdk17 pull/159/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 159
View PR using the GUI difftool:
$ git pr show -t 159
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/159.diff