GeoTools Version not parsed correctly
-------------------------------------
Key: GEOT-3246
URL: http://jira.codehaus.org/browse/GEOT-3246
Project: GeoTools
Issue Type: Bug
Components: core metadata
Affects Versions: 2.6.6, 2.7-M3
Reporter: Jody Garnett
The GeoTools.getVersion() method returns a Version instance with:
- getMajor()
- getMinor()
- getRevision()
When working with "2.6-SNAPSHOT" these values are:
- "2"
- "6-SNAPSHOT"
I would kind of expect this to be "2" "6" and "SNAPSHOT".
The change required is to the pattern used to parse the provided init string.
{code}
public static final char SEPARATOR = '.';
private static final Pattern PATTERN = Pattern.compile("\\" + SEPARATOR);
{code}
I would expect something like:
{code}
private static final Pattern PATTERN = Pattern.compile("(\\.|\\-)");
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel