Ordering of versions

mark.reinhold at oracle.com mark.reinhold at oracle.com
Wed Nov 9 09:20:25 PST 2011


2011/11/9 8:59 -0800, njbartlett at gmail.com:
> Forgive me if I have missed something, but if a version
> segment/qualifier can be interpreted as either a number or a string,
> depending on whether it is compared against another number or string,
> then versions are not totally ordered.
> 
> For example:
> 
> "1B" is greater than "10"

No, "1B" < "10" because "1B" is parsed as two tokens, "1" and "B",
and "1" < "10".

- Mark



More information about the jigsaw-dev mailing list