RFR: 8314491: Linux: jexec launched via PATH fails to find java [v2]
David Holmes
dholmes at openjdk.org
Mon Aug 21 06:36:31 UTC 2023
On Mon, 21 Aug 2023 06:18:15 GMT, Vladimir Petko <vpetko at openjdk.org> wrote:
> realpath call in getJavaPath() function translates the symbolic link into the binary path.
Okay so a specific API makes this work as intended.
What I can't determine is whether this may have an adverse effect on anyone using an "unusual" path to jexec, that `/proc/self/exe` will report differently. To minimise the impact on existing users can this be implemented as a fallback if the initial attempt to locate `java` fails?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15343#issuecomment-1685732281
More information about the core-libs-dev
mailing list