You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Patrick Woody (Jira)" <ji...@apache.org> on 2020/09/15 14:04:00 UTC

[jira] [Created] (ARROW-10017) [Java] LargeMemoryUtil.checkedCastToInt has buggy logic

Patrick Woody created ARROW-10017:
-------------------------------------

             Summary: [Java] LargeMemoryUtil.checkedCastToInt has buggy logic
                 Key: ARROW-10017
                 URL: https://issues.apache.org/jira/browse/ARROW-10017
             Project: Apache Arrow
          Issue Type: Bug
          Components: Java
    Affects Versions: 1.0.1
            Reporter: Patrick Woody


LargeMemoryUtil.checkedCastToInt does checked conversion from long -> int if BoundsChecking is enabled. However, it looks like there is a bug in the logic:

length <= Integer.{color:#9876aa}MAX_VALUE {color}|| length >= Integer.{color:#9876aa}MIN_VALUE{color}

is always true.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)