On Thu, 15 Feb 2024 08:53:12 GMT, Alan Bateman <al...@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 > >> `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? No, I don't. Also double-checked via `JarFile/ZipFile::getName`'s implementation returning the entire path to the JAR file. Re-running tier1-3 tests just in case... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17843#discussion_r1494762559