accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-4113) Fix incorrect usage of ByteBuffer
Date Wed, 20 Jan 2016 00:04:39 GMT
Keith Turner created ACCUMULO-4113:
--------------------------------------

             Summary: Fix incorrect usage of ByteBuffer
                 Key: ACCUMULO-4113
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4113
             Project: Accumulo
          Issue Type: Bug
    Affects Versions: 1.7.0, 1.6.4
            Reporter: Keith Turner
             Fix For: 1.6.5, 1.7.1, 1.8.0


While working on ACCUMULO-4098 I found one place where ByteBuffer was being used incorrectly.
  Looking around the code, I have found other places that are using ByteBuffer incorrectly.
 Some of the problems I found are as follows :

 * Calling {{ByteBuffer.array()}} without calling {{ByteBuffer.hasArray()}}.
 * Using {{ByteBuffer.position()}} or {{ByteBuffer.limit()}} without adding {{ByteBuffer.arrayOffset()}}
when dealing with an array returned by {{ByteBuffer.array()}}.
 * Using {{ByteBuffer.arrayOffset()}} without adding {{ByteBuffer.position()}} when dealing
with an array returned by {{ByteBuffer.array()}}.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message