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 CADC6107D7 for ; Wed, 25 Sep 2013 14:54:04 +0000 (UTC) Received: (qmail 15051 invoked by uid 500); 25 Sep 2013 14:54:04 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 15013 invoked by uid 500); 25 Sep 2013 14:54:04 -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 14801 invoked by uid 99); 25 Sep 2013 14:54:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Sep 2013 14:54:03 +0000 Date: Wed, 25 Sep 2013 14:54:02 +0000 (UTC) From: "William Slacum (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-1738) ArrayByteSequence string conversion use platform default encoding 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-1738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777578#comment-13777578 ] William Slacum commented on ACCUMULO-1738: ------------------------------------------ I'd rather we just made {{toString()}} return something akin to {{Arrays.toString(byte[] array)}}. The ArrayByteSequence is just a wrapper around a slice of a byte array- I'd rather it not transform bytes just because a convenience constructor was used. > ArrayByteSequence string conversion use platform default encoding > ----------------------------------------------------------------- > > Key: ACCUMULO-1738 > URL: https://issues.apache.org/jira/browse/ACCUMULO-1738 > Project: Accumulo > Issue Type: Bug > Reporter: Bill Havanki > Priority: Trivial > Labels: newbie > > The class {{org.apache.accumulo.core.data.ArrayByteSequence}} has a constructor that accepts a {{String}}, as well as a {{toString()}} method. Both use the platform default encoding to convert from characters to bytes and back, which can cause problems. They should explicitly use {{Constants.UTF8}} for conversion to ensure consistency across platforms. -- 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