[
https://issues.apache.org/jira/browse/HBASE-3444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475196#comment-13475196
]
Jimmy Xiang commented on HBASE-3444:
------------------------------------
This patch looks the same as what we have in trunk:
{noformat}
if (ch == '\\' && in.length() > i+1 && in.charAt(i+1) == 'x')
{noformat}
Did I miss anything?
> Bytes.toBytesBinary and Bytes.toStringBinary() should be 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.96.0
>
> Attachments: 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 to a
--
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