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

Elliotte Rusty Harold commented on MNG-7701:
--------------------------------------------

This bug appears valid. This test currently fails at head:

{{{}{}}}{{{}{color:#808000}@Test
{color}{color:#000080}public void {color}testMNG7701() {{}}}
{{ComparableVersion c1 = {color:#000080}new 
{color}ComparableVersion({color:#008000}"1.x"{color});}}
{{ComparableVersion c2 = {color:#000080}new 
{color}ComparableVersion({color:#008000}"1_x"{color});}}

{{assertTrue(c1.compareTo(c2) < {color:#0000ff}0{color});}}
{{}}}

> 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
>            Assignee: Elliotte Rusty Harold
>            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