You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2022/12/21 22:40:00 UTC

[jira] [Closed] (MNG-7644) Fix version comparison where .X1 < -X2 for any string qualifier X

     [ https://issues.apache.org/jira/browse/MNG-7644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MNG-7644.
-------------------------------
    Fix Version/s: 3.9.0
                   4.0.0
                   4.0.0-alpha-4
                   3.8.7
                       (was: 4.0.x-candidate)
                       (was: 3.8.x-candidate)
                       (was: 3.9.0-candidate)
       Resolution: Fixed

Fixed with [35c81bedde7290710208a8912170638bac76ee6f|https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=35c81bedde7290710208a8912170638bac76ee6f], with [6de6877c2fe772c6d0a19cf518a3fd806b8a0afb|https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=6de6877c2fe772c6d0a19cf518a3fd806b8a0afb] for maven-3.9.x branch, with [da4246ad2677f3a91353b6f3024832e4a5aff7b4|https://gitbox.apache.org/repos/asf?p=maven.git&a=commit&h=da4246ad2677f3a91353b6f3024832e4a5aff7b4] for maven-3.8.x branch.

> Fix version comparison where .X1 < -X2 for any string qualifier X
> -----------------------------------------------------------------
>
>                 Key: MNG-7644
>                 URL: https://issues.apache.org/jira/browse/MNG-7644
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.8.6, 4.0.0-alpha-3
>            Reporter: Gwénaël Ruelland
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 3.9.0, 4.0.0, 4.0.0-alpha-4, 3.8.7
>
>
> The current version parser does not treat .RC and -RC correctly:
> actual : 1.0.0.RC1 > 1.0.0-RC2
> expected : 1.0.0.RC1 < 1.0.0-RC2
> because RC1 < RC2
> how to fix : place a list item before qualifier
> the intention is to have this same result with all qualifier x:
> actual : 1.0.0.X1 > 1.0.0-X2
> actual : 1.0.X < 1.0.0.X
> expected : 1.0.0.X1 < 1.0.0-X2
> expected : 1.0.X == 1-X == 1.0.0.X



--
This message was sent by Atlassian Jira
(v8.20.10#820010)