You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David M. Lloyd (Jira)" <ji...@apache.org> on 2023/02/17 21:49:00 UTC
[jira] [Commented] (MNG-7701) Incompatible version sorting changes
[ https://issues.apache.org/jira/browse/MNG-7701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17690615#comment-17690615 ]
David M. Lloyd commented on MNG-7701:
-------------------------------------
This is easy to test by hand using [JBang|https://www.jbang.dev/]:
{code}
$ jbang org.apache.maven:maven-artifact:3.8.6 1.alpha 1-alpha
Display parameters as parsed by Maven (in canonical form and as a list of tokens) and comparison result:
1. 1.alpha -> 1.alpha; tokens: [1, alpha]
1.alpha < 1-alpha
2. 1-alpha -> 1-alpha; tokens: [1, [alpha]]
{code}
{code}
$ jbang org.apache.maven:maven-artifact:3.8.7 1.alpha 1-alpha
Display parameters as parsed by Maven (in canonical form and as a list of tokens) and comparison result:
1. 1.alpha -> 1-alpha; tokens: [1, [alpha]]
1.alpha == 1-alpha
2. 1-alpha -> 1-alpha; tokens: [1, [alpha]]
{code}
> 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
>
> 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)