RFR: 8268974: GetJREPath() JLI function fails to locate libjava.so if not standard Java launcher is used [v3]

Andy Herrick herrick at openjdk.java.net
Wed Jul 7 19:02:57 UTC 2021


On Wed, 7 Jul 2021 18:54:23 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

>> GetApplicationHomeFromDll() fails if the path to libjli.so contains "bin" component (/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so). TruncatePath() looks for "/bin/" first in "/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so" string and then it looks for "/lib/". But this is wrong order as it should look for "/lib/" first. I.e. TruncatePath() should look for "/bin/" and then for "/lib/" if called from GetApplicationHome() and for "/lib/" first and then for "/bin/" if called from GetApplicationHomeFromDll().
>
> Alexey Semenyuk has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Test added

Marked as reviewed by herrick (Reviewer).

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

PR: https://git.openjdk.java.net/jdk/pull/4534


More information about the core-libs-dev mailing list