accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Slacum (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-1738) ArrayByteSequence string conversion use platform default encoding
Date Wed, 25 Sep 2013 14:54:02 GMT


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:
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Bill Havanki
>            Priority: Trivial
>              Labels: newbie
> The class {{}} 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:

View raw message