[
https://issues.apache.org/jira/browse/UIMA-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020922#comment-13020922
]
Tommaso Teofili commented on UIMA-1581:
---------------------------------------
I found what this problem came from previously.
This was due to NumberFormat.getInstance().parse(floatstring).floatValue()
handling of decimal numbers strings like "2.4" which get converted as the float
2.4 on all those platform whose language specifies the period character (.) to
be the separator between the integer part and the decimal portion of such a
number while it fails with other languages (like Italian) where the separator
is the comma character (,).
The above piece of code performs a platform dependent conversion so since some
tests have a string feature value like "2.4" it may fail on some platforms.
> RegularExpressionAnnotator tests fail
> -------------------------------------
>
> Key: UIMA-1581
> URL: https://issues.apache.org/jira/browse/UIMA-1581
> Project: UIMA
> Issue Type: Bug
> Components: Sandbox-RegexAnnotator
> Affects Versions: 2.3S
> Environment: MacOS X
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
>
> the following TestSetFeatureValues tests fail:
> * testSetFeatureValues1
> * testSetFeatureValues2
> * testSetFeatureValues3
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira