RFR: 8318812: LauncherHelper.checkAndLoadMain closes jar file that's about to be re-opened [v2]

Alan Bateman alanb at openjdk.org
Thu Feb 15 08:55:54 UTC 2024


On Wed, 14 Feb 2024 15:42:48 GMT, Christian Stein <cstein at openjdk.org> wrote:

> `String jarname` is filled by the caller with the value of `String what`, and therefore contains the entire path to the executable JAR file. Using only `jarFile.getName()` will prevent any parent directories from being noted in error messages; which might affect some tests

It returns the path name so I think it does what we want. Do you observe a behavior difference?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17843#discussion_r1490650825


More information about the core-libs-dev mailing list