[ 
https://issues.apache.org/jira/browse/MNG-7701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691305#comment-17691305
 ] 

Michael Osipov commented on MNG-7701:
-------------------------------------

FTR:
{noformat}
$ java -jar /usr/local/share/java/maven/lib/maven-artifact-3.8.7.jar 1.x 1_y
Display parameters as parsed by Maven (in canonical form and as a list of 
tokens) and comparison result:
1. 1.x -> 1-x; tokens: [1, [x]]
   1.x > 1_y
2. 1_y -> 1-_y; tokens: [1, [_y]]
$ java -jar /usr/local/share/java/maven/lib/maven-artifact-3.8.7.jar 1.y 1_x
Display parameters as parsed by Maven (in canonical form and as a list of 
tokens) and comparison result:
1. 1.y -> 1-y; tokens: [1, [y]]
   1.y > 1_x
2. 1_x -> 1-_x; tokens: [1, [_x]]
{noformat}


> Incompatible version sorting changes
> ------------------------------------
>
>                 Key: MNG-7701
>                 URL: https://issues.apache.org/jira/browse/MNG-7701
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.8.7, 3.9.0
>            Reporter: David M. Lloyd
>            Priority: Major
>             Fix For: 3.8.x-candidate, 3.9.1-candidate, waiting-for-feedback
>
>
> Between 3.8.6 and 3.8.7, the sorting of a variety of version strings has 
> changed. This table captures the observed relations:
> ||Input 1||3.8.6||3.8.7||Input 2||
> |{{0.x}}|{{>}}|{{==}}|{{0-x}}|
> |{{1.x}}|{{<}}|{{==}}|{{1-x}}|
> |{{1.x}}|{{<}}|{{>}}|{{1_y}}|
> |{{1.y}}|{{<}}|{{>}}|{{1_x}}|
> |{{1-alpha}}|{{>}}|{{==}}|{{1.alpha}}|



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

Reply via email to