zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Hunt (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ZOOKEEPER-891) Allow non-numeric version strings
Date Wed, 13 Oct 2010 15:58:36 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Patrick Hunt updated ZOOKEEPER-891:
-----------------------------------

    Fix Version/s:     (was: 4.0.0)

I noticed a similar issue when I attempted to move us to the scheme hadoop core is using -
x.y.z-dev as the default version. We should address this. Slating for 3.4.0

> Allow non-numeric version strings
> ---------------------------------
>
>                 Key: ZOOKEEPER-891
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-891
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: build
>            Reporter: Eli Collins
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Non-numeric version strings (eg -dev) or -are not currently accepted, you either get
an error (Invalid version number format, must be "x.y.z") or if you pass x.y.z-dev or x.y.z+1
you'll get a NumberFormatException.  Would be useful to allow non-numeric versions. 
> {noformat}
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For input string:
"3-dev"
>      [java] 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java] 	at java.lang.Integer.parseInt(Integer.java:458)
>      [java] 	at java.lang.Integer.parseInt(Integer.java:499)
>      [java] 	at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:131)
>      [java] Java Result: 1
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message