Ordering of versions
Neil Bartlett
njbartlett at gmail.com
Wed Nov 9 10:45:16 PST 2011
What determines the split into 2 tokens, i.e. why is "1B" parsed as 2
tokens whereas "10" is just 1 token? Does this mean that 1B is
equivalent to 1.B? Is "beta" parsed as 4 tokens, b.e.t.a?
Perhaps I should read the code as Glyn is doing, but a proper
description of how the versioning is *intended* to work would be
better.
Rgds
Neil
On Wed, Nov 9, 2011 at 5:20 PM, <mark.reinhold at oracle.com> wrote:
> 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