JPackageCommand.ignoreFakeRuntime() method [1] mistakenly tests if Java runtime configured for the current jpackage command is a valid Java runtime.
It must test the runtime configured for jpackage tests with "jdk.jpackage.test.runtime-image" system property instead.
[1] https://github.com/openjdk/jdk/blob/88fa3b2fe9bccf9cd4a4041732e2f6d425c19244/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java#L692
It must test the runtime configured for jpackage tests with "jdk.jpackage.test.runtime-image" system property instead.
[1] https://github.com/openjdk/jdk/blob/88fa3b2fe9bccf9cd4a4041732e2f6d425c19244/test/jdk/tools/jpackage/helpers/jdk/jpackage/test/JPackageCommand.java#L692
- links to
-
Commit(master) openjdk/jdk/01c8ba2c
-
Review(master) openjdk/jdk/22986