RFR: 8357404: jpackage should attempt to get a package version from the JDK's release file if the --version option is not specified [v10]

Alexander Matveev almatvee at openjdk.org
Fri Feb 13 00:48:28 UTC 2026


On Fri, 13 Feb 2026 00:17:03 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

>> 2 or 4 components are valid for Windows.
>> 
>>> "17" into "17.0" instead of "17.0.0.0"?
>> 
>> Good question. I do not have any preferences.
>
>> 2 or 4 components are valid for Windows.
> 
> Ok, why 3 is not valid? Which component complains?

MSI. It should be between 2 and 4, so 3 is valid. Will fix it.

if (components.length < 2 || components.length > 4) {
            throw buildLocalizedException()
                    .message("error.msi-product-version-components", value)
                    .create(IllegalArgumentException::new);
        }

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29260#discussion_r2801736267


More information about the core-libs-dev mailing list