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:05:38 UTC 2026


On Thu, 12 Feb 2026 23:53:50 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:

>> Yes. We want to normalize only if version is not complaint with target package requirements. If normalization is required it will be always done to 4 components. 17 -> 17.0.0.0.
>
> Ok, but why "17.2" is a special case:
> 
> 17     -> 17.0.0.0
> 17.2   -> 17.2
> 17.2.3 -> 17.2.3.0
> 
> ?
> 
> And another question. If "17.2" is OK, then why don't we convert "17" into "17.0" instead of "17.0.0.0"?

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.

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

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


More information about the core-libs-dev mailing list