[
https://issues.apache.org/jira/browse/UIMA-286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor closed UIMA-286.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.1
fixed by replacing
Math.abs(R.nextInt()) % S.length with
R.nextInt(S.length)
> Math.abs returns a negative number very occasionally, causing NameClient in
> jVinci to fail
> ------------------------------------------------------------------------------------------
>
> Key: UIMA-286
> URL: https://issues.apache.org/jira/browse/UIMA-286
> Project: UIMA
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Marshall Schor
> Assigned To: Marshall Schor
> Priority: Trivial
> Fix For: 2.1
>
>
> NameClient class in jVinci has faulty use of Math.abs(an-integer) - it
> presumes this returns a positive or 0 integer. However, the Java impl of
> this when given the integer Integer.MIN_VALUE, returns the negative number
> MIN_VALUE.
> Found by Findbugs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.