RFR: 8268974: jpackage fails to handle --dest option containing "bin" folder
Alexey Semenyuk
asemenyuk at openjdk.java.net
Fri Jun 18 22:54:52 UTC 2021
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().
-------------
Commit messages:
- 8268974: jpackage fails to handle --dest option containing "bin" folder
Changes: https://git.openjdk.java.net/jdk/pull/4534/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4534&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8268974
Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/4534.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4534/head:pull/4534
PR: https://git.openjdk.java.net/jdk/pull/4534
More information about the core-libs-dev
mailing list