On Fri, 16 Jan 2026 04:08:43 GMT, Alexander Matveev <[email protected]> 
wrote:

>> 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.

Sorry, I still don't get it. jpackage doesn't run normalization on the version 
it reads from the "release" file, right? Why does the testing code do it?

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

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

Reply via email to