-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b23
-
Verified
A DESCRIPTION OF THE PROBLEM :
In the "version number" section of the version, any consecutive "." are collapsed, so:
* "1" == "1.0" == "1......0"
Any trailing "." are dropped:
* "1" == "1." == "1......."
But in the pre-release and build sections, "." are only conditionally collapsed, such that any odd number of trailing "." is considered equal to that number of trailing "." minus one:
* "1-1" == "1-1."
* "1-1." < "1-1.."
* "1-1.." == "1-1..."
This does not extend to non-trailing "." in these sections, where:
* "1-1+1a" == "1-1+1.a" (because number to letter transitions are equal to ".")
* "1-1+1..a" < "1-1+1.a"
* "1-1+1...a" < "1-1+1..a"
* etc.
Empty segments probably ought to be rejected outright.
FREQUENCY : always
In the "version number" section of the version, any consecutive "." are collapsed, so:
* "1" == "1.0" == "1......0"
Any trailing "." are dropped:
* "1" == "1." == "1......."
But in the pre-release and build sections, "." are only conditionally collapsed, such that any odd number of trailing "." is considered equal to that number of trailing "." minus one:
* "1-1" == "1-1."
* "1-1." < "1-1.."
* "1-1.." == "1-1..."
This does not extend to non-trailing "." in these sections, where:
* "1-1+1a" == "1-1+1.a" (because number to letter transitions are equal to ".")
* "1-1+1..a" < "1-1+1.a"
* "1-1+1...a" < "1-1+1..a"
* etc.
Empty segments probably ought to be rejected outright.
FREQUENCY : always
- relates to
-
JDK-8276826 Clarify the ModuleDescriptor.Version specification’s treatment of repeated punctuation characters
-
- Resolved
-
-
JDK-8250677 ModuleDescriptor.Version parsing treats pre-release identically to build
-
- Open
-