Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5809E1842E for ; Wed, 20 Jan 2016 00:04:40 +0000 (UTC) Received: (qmail 4412 invoked by uid 500); 20 Jan 2016 00:04:40 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 4366 invoked by uid 500); 20 Jan 2016 00:04:40 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 4248 invoked by uid 99); 20 Jan 2016 00:04:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2016 00:04:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E72D12C1F5B for ; Wed, 20 Jan 2016 00:04:39 +0000 (UTC) Date: Wed, 20 Jan 2016 00:04:39 +0000 (UTC) From: "Keith Turner (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (ACCUMULO-4113) Fix incorrect usage of ByteBuffer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-4113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keith Turner reassigned ACCUMULO-4113: -------------------------------------- Assignee: Keith Turner > 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.6.4, 1.7.0 > Reporter: Keith Turner > Assignee: 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)