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

Ted Yu commented on HBASE-8273:
-------------------------------

Thanks J-D for the experiment.
I found something that the proposed trick cannot address too:
{code}
-  public void setValue(byte[] key, byte[] value) {
+  public HColumnDescriptor setValue(byte[] key, byte[] value) {
{code}
I tried char[] and Byte[]. Neither of which can bind with byte[].

This is a (compatibility) lesson I will remember.
                
> HColumnDescriptor setters should return void
> --------------------------------------------
>
>                 Key: HBASE-8273
>                 URL: https://issues.apache.org/jira/browse/HBASE-8273
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> See discussion on dev@ mailing list, entitled 'Does compatibility between 
> versions also mean binary compatibility?'
> Synopsis from that thread:
> HBASE-5357 "Use builder pattern in HColumnDescriptor" changed the
> method signatures by changing "void" to "HColumnDescriptor" so it' not
> the same methods anymore.
> if you invoke setters
> on HColumnDescriptor as you'll get:
> java.lang.NoSuchMethodError:
> org.apache.hadoop.hbase.HColumnDescriptor.setMaxVersions(I)V

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

Reply via email to