Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 157DDD7DC for ; Fri, 9 Nov 2012 10:14:18 +0000 (UTC) Received: (qmail 23576 invoked by uid 500); 9 Nov 2012 10:14:17 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 23163 invoked by uid 500); 9 Nov 2012 10:14:17 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 23147 invoked by uid 99); 9 Nov 2012 10:14:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 10:14:16 +0000 Date: Fri, 9 Nov 2012 10:14:16 +0000 (UTC) From: "Hiroshi Ikeda (JIRA)" To: issues@hbase.apache.org Message-ID: <2115928368.91103.1352456056681.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (HBASE-7137) Improve Bytes to accept byte buffers which don't allow us to directly access thier backed arrays MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Hiroshi Ikeda created HBASE-7137: ------------------------------------ Summary: Improve Bytes to accept byte buffers which don't allow us to directly access thier backed arrays Key: HBASE-7137 URL: https://issues.apache.org/jira/browse/HBASE-7137 Project: HBase Issue Type: Improvement Reporter: Hiroshi Ikeda Priority: Minor Inside HBase, it seems that there is the implicit assumption that byte buffers have backed arrays and are not read-only, and we can freely call ByteBuffer.array() and arrayOffset() without runtime exceptions. But some classes, including Bytes, are supposed to be used by users from outside of HBase, and we should think the possibility that methods receive byte buffers which don't hold the assumption. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira