RFR: JDK-8191709 : javapackager detects WiX 3.10 as 3.1 and fails to use WiX 3.6+ compatible code

Alexander Matveev alexander.matveev at oracle.com
Thu Feb 28 00:24:24 UTC 2019


Hi Kevin,

You right, comparison was not right. I fixed it.
http://cr.openjdk.java.net/~almatvee/8191709/webrev.01/

Thanks,
Alexander


On 2/26/2019 4:17 PM, Kevin Rushforth wrote:
> The comparison isn't quite right. It will fail if either the major or 
> minor is less than the minimum. This means, for example, that 4.1 will 
> be considered less than 3.6.
>
> -- Kevin
>
>
> On 2/26/2019 3:25 PM, Alexander Matveev wrote:
>> Please review the jpackage fix for bug [1] at [2].
>>
>> This is a fix for the JDK-8200758-branch branch of the open sandbox 
>> repository (jpackage).
>>
>> - Problem was in how we compare versions. We used to compare it as 
>> float number, so 3.10 -> 3.1 which was less then 3.6.
>> - Fixed by comparing major and minor version separately.
>> - Fixed minor spelling error in resources.
>>
>> [1] https://bugs.openjdk.java.net/browse/JDK-8191709
>>
>> [2] http://cr.openjdk.java.net/~almatvee/8191709/webrev.00/
>>
>> Thanks,
>> Alexander
>



More information about the core-libs-dev mailing list