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)

Reply via email to