[ 
https://issues.apache.org/jira/browse/HADOOP-10250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947209#comment-13947209
 ] 

Yongjun Zhang commented on HADOOP-10250:
----------------------------------------

HI [~szetszwo], That's a very good question.  I actually did try importing it 
in my earlier attempt, it turned out to be not clean, basically
we need to import the whole package org.apache.maven.artifact.versioning  
though we just need this  single file. Plus it would create 
hadoop dependency on maven (they have different version too). At that point, it 
was decided that to make a copy of this file is a cleaner
and easier solution. I'm open for suggestions. Thanks.






> VersionUtil returns wrong value when comparing two versions
> -----------------------------------------------------------
>
>                 Key: HADOOP-10250
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10250
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.3.0
>            Reporter: Yongjun Zhang
>            Assignee: Yongjun Zhang
>             Fix For: 2.3.0
>
>         Attachments: HADOOP-10250.001.patch, HADOOP-10250.002.patch, 
> HADOOP-10250.003.patch, HADOOP-10250.004.patch, HADOOP-10250.004.patch
>
>
> VersionUtil.compareVersions("1.0.0-beta-1", "1.0.0") returns 7 instead of 
> negative number, which is wrong, because 1.0.0-beta-1 older than 1.0.0.
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to