On Fri, 16 Jan 2026 03:15:39 GMT, Alexey Semenyuk <[email protected]> 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 [v3]
>
> test/jdk/tools/jpackage/helpers/jdk/jpackage/test/MacHelper.java line 765:
> 
>> 763: 
>> 764:     static String getNormalizedVersion(JPackageCommand cmd, String 
>> version) {
>> 765:         cmd.verifyIsOfType(PackageType.MAC);
> 
> The JPackageCommand instance is unrelated to the version string and is used 
> only to check that it is configured for Mac. It doesn't supply any 
> information required by the method to operate. The method should take a 
> single parameter - a version string.
> 
> Why does the MacHelper class have this method, though jpackage doesn't do 
> version normalization on macOS?

I added it to reduce to 3 components due to 
`MacApplicationBuilder.validateAppVersion()`. Mac packages does not require 3 
component version, so maybe this logic by normalizing application version 
should change.

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

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

Reply via email to