[ 
https://issues.apache.org/jira/browse/HBASE-16692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517927#comment-15517927
 ] 

binlijin edited comment on HBASE-16692 at 9/24/16 12:17 AM:
------------------------------------------------------------

Done, i am curious why the TestByteBufferUtils is in the package 
"hbase-server/src/test/" not "hbase-common/src/test/"


was (Author: aoxiang):
Done, i am curious why the TestByteBufferUtils is on the package 
"hbase-server/src/test/" not "hbase-common/src/test/"

> Make ByteBufferUtils#equals more safe and correct
> -------------------------------------------------
>
>                 Key: HBASE-16692
>                 URL: https://issues.apache.org/jira/browse/HBASE-16692
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: binlijin
>            Assignee: binlijin
>             Fix For: 2.0.0
>
>         Attachments: HBASE-16692-master.patch, HBASE-16692-master_v2.patch, 
> HBASE-16692-master_v3.patch, HBASE-16692-master_v4.patch
>
>
> ByteBufferUtils.equals(HConstants.EMPTY_BYTE_BUFFER, 0, 0, 
> HConstants.EMPTY_BYTE_ARRAY, 0, 0) will throw 
> java.lang.ArrayIndexOutOfBoundsException: -1, i think it should return true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to