You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Ross Goldberg <ro...@gmail.com> on 2018/05/30 16:16:54 UTC
Are non-latin digits considered numeric for the Maven version order spec?
Are non-latin digits considered numeric for the Maven version order spec?
Or should only latin (i.e. ASCII) digits be considered numeric?
https://maven.apache.org/pom.html#Version_Order_Specification
Thanks.
Re: Are non-latin digits considered numeric for the Maven version
order spec?
Posted by Ross Goldberg <ro...@gmail.com>.
While ComparableVersion considers non-Latin digits as numeric because it
uses Character.isDigit(char), ComparableVersion is buggy, so I can’t take
its code as a spec.
I’m making my own version parser that isn’t buggy; I want to ensure that I
follow the intent rather than the existing code.
On Wed, May 30, 2018 at 1:01 PM Michael Osipov <mi...@apache.org> wrote:
> Am 2018-05-30 um 18:16 schrieb Ross Goldberg:
> > Are non-latin digits considered numeric for the Maven version order spec?
> >
> > Or should only latin (i.e. ASCII) digits be considered numeric?
> >
> > https://maven.apache.org/pom.html#Version_Order_Specification
>
> Have a look here:
>
> /maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
>
Re: Are non-latin digits considered numeric for the Maven version
order spec?
Posted by Michael Osipov <mi...@apache.org>.
Am 2018-05-30 um 18:16 schrieb Ross Goldberg:
> Are non-latin digits considered numeric for the Maven version order spec?
>
> Or should only latin (i.e. ASCII) digits be considered numeric?
>
> https://maven.apache.org/pom.html#Version_Order_Specification
Have a look here:
/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org