RFR: 8268974: jpackage fails to handle --dest option containing "bin" folder
Alexander Matveev
almatvee at openjdk.java.net
Fri Jun 18 23:08:31 UTC 2021
On Fri, 18 Jun 2021 22:46:24 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().
Marked as reviewed by almatvee (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/4534
More information about the core-libs-dev
mailing list