[ https://issues.apache.org/jira/browse/MNG-7701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693476#comment-17693476 ]
Elliotte Rusty Harold commented on MNG-7701: -------------------------------------------- Hmm, underscore is ascii 95 x is ascii 120 so _x does sort lexicographically before x. That is, I was wrong when I said "Underscore comes after all alphabetic characters in lexicographic order. 1_y is effectively the same as 1._y." It is a little tricky because capital X comes before x but we normalize to lower case. Thus the 3.8.7 behavior is correct and expected. > 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)