[jdk17] RFR: 8269486: CallerAccessTest fails for non server variant [v2]

Jorn Vernee jvernee at openjdk.java.net
Mon Jun 28 18:49:09 UTC 2021


On Mon, 28 Jun 2021 14:52:41 GMT, Christoph Göttschkes <cgo at openjdk.org> wrote:

>> 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.
>
> Christoph Göttschkes has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Renames serverDir to vmDir.

> 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.

-------------

Marked as reviewed by jvernee (Reviewer).

PR: https://git.openjdk.java.net/jdk17/pull/159


More information about the core-libs-dev mailing list