Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.6.3
-
None
-
None
Description
When a hard version requirement (Ex - [1.0]) is passed to VersionRange#createFromVersionSpec(String), it is parsed to [1.0, 1.0]. But, this version range is invalid according to this exception. If the parsed version range ([1.0, 1.0]) is converted to a String, it cannot be parsed once again by VersionRange#createFromVersionSpec(String).
Steps to reproduce -
VersionRange versionRange = VersionRange.createFromVersionSpec("[1.0]"); // [1.0, 1.0] String stringVersionRange = VersionRange.toString(versionRange); // "[1.0, 1.0]" VersionRange exceptionVersionRange = VersionRange.createFromVersionSpec(stringVersionRange); // <- InvalidVersionSpecificationException( "Range cannot have identical boundaries: [1.0, 1.0]" )
Attachments
Issue Links
- relates to
-
MNG-7561 DefaultVersionRangeResolver should not try to resolve versions with same upper and lower bound
- Closed
- links to