You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Keith Turner (JIRA)" <ji...@apache.org> on 2016/01/20 01:04:39 UTC
[jira] [Created] (ACCUMULO-4113) Fix incorrect usage of ByteBuffer
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)