Ordering of versions
mark.reinhold at oracle.com
mark.reinhold at oracle.com
Wed Nov 9 08:37:04 PST 2011
2011/11/9 7:47 -0800, gnormington at vmware.com:
> I see. How are the tokens of a qualifier compared? If they are compared
> just like the initial part,
Yes.
> then that would be a numeric comparison for
> numeric tokens, but what about non-numeric tokens like BETA and GA?
They are compared lexicographically, so BETA < GA.
> Are
> tokens compared as strings if at least one of the tokens being compared
> is non-numeric?
Yes.
> Or I can read the code if you prefer to send me a link. ;-)
http://hg.openjdk.java.net/jigsaw/jigsaw/jdk/file/960eb03d1270/src/share/classes/org/openjdk/jigsaw/JigsawVersion.java
- Mark
More information about the jigsaw-dev
mailing list