RFR: 8357404: jpackage should attempt to get a package version from the JDK's release file if the --version option is not specified [v6]
Alexander Matveev
almatvee at openjdk.org
Wed Feb 4 00:42:52 UTC 2026
On Mon, 2 Feb 2026 20:40:34 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
>> Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8357404: jpackage should attempt to get a package version from the JDK's release file if the --version option is not specified [v6]
>
> test/jdk/tools/jpackage/share/RuntimePackageTest.java line 160:
>
>> 158: .cannedFormattedString("message.release-version",
>> 159: version, runtimeImage.toString()));
>> 160: if (!normalizedVersion.isEmpty()) {
>
> Why would we not have a normalized version in some cases? Shouldn't it always be available?
Message `Using version "{0}" normalized to platform supported format from "{1}"` is only displayed if version read from release file was normalized. If version can be used as is from release file, then message is not printed.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29260#discussion_r2761646894
More information about the core-libs-dev
mailing list