The recently implemented StringUtil.compareUsingOperator method is being used to check software versions for test compatibility. However, the comparison is not smart enough to deal with granularity of parts. For example, x.1.x and x.14.x would result in . and 4 getting compared where only number should be compared. Also, the standard of using dev on the end of the version without preceding period is causing issues with the parsing the version and doing the comparison.
The recently implemented
StringUtil.compareUsingOperator
method is being used to check software versions for test compatibility. However, the comparison is not smart enough to deal with granularity of parts. For example,x.1.x
andx.14.x
would result in.
and4
getting compared where only number should be compared. Also, the standard of usingdev
on the end of the version without preceding period is causing issues with the parsing the version and doing the comparison.