-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
bugSomething isn't workingSomething isn't workingpriority:majorMajor loss of functionMajor loss of function
Milestone
Description
Andrzej J. opened MNG-7559 and commented
Since I know that ComparableVersion was brought to Maven from versions-maven-plugin, it turns out the bug described here:
also exists in maven, at least in 3.8.3.
According to the maven version spec, versions containing a qualifier should be treated as less major than the same versions without the qualifier.
Currently it's only the case for a few "standard" qualifiers, e.g. "-rc*", "-alpha", etc.
However, it looks like "2.3-pfd" is deemed less major than "2.3".
@Test
public void testComparableVersionWithCustomQualifier()
{
assertThat( new ComparableVersion( "2.3" ).compareTo( new ComparableVersion( "2.3-pfd" ) ),
greaterThan( 0 ) );
}Affects: 3.8.3
Attachments:
- image-2022-10-22-18-22-11-591.png (95.76 kB)
Remote Links:
- GitHub Pull Request #331
- GitHub Pull Request #845
- GitHub Pull Request #887
- GitHub Pull Request #925
- GitHub Pull Request #929
0 votes, 5 watchers
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority:majorMajor loss of functionMajor loss of function