You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Tianying Chang (JIRA)" <ji...@apache.org> on 2013/03/12 22:11:13 UTC

[jira] [Updated] (HBASE-3444) Test to prove Bytes.toBytesBinary and Bytes.toStringBinary() is reversible

     [ https://issues.apache.org/jira/browse/HBASE-3444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tianying Chang updated HBASE-3444:
----------------------------------

    Description: 
Bytes.toStringBinary() doesn't escape \.

Otherwise the transformation isn't reversible

byte[] a = {'\', 'x' , '0', '0'}

Bytes.toBytesBinary(Bytes.toStringBinary(a)) won't be equal t


  was:
Bytes.toStringBinary() doesn't escape \.

Otherwise the transformation isn't reversible

byte[] a = {'\', 'x' , '0', '0'}

Bytes.toBytesBinary(Bytes.toStringBinary(a)) won't be equal to a


    
> Test to prove Bytes.toBytesBinary and Bytes.toStringBinary()  is reversible
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-3444
>                 URL: https://issues.apache.org/jira/browse/HBASE-3444
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Prakash Khemani
>            Assignee: Ken Dallmeyer
>            Priority: Minor
>             Fix For: 0.95.0
>
>         Attachments: 3444-testonly.txt, 3444.txt
>
>
> Bytes.toStringBinary() doesn't escape \.
> Otherwise the transformation isn't reversible
> byte[] a = {'\', 'x' , '0', '0'}
> Bytes.toBytesBinary(Bytes.toStringBinary(a)) won't be equal t

--
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