junegunn / hbase-jruby

A JRuby binding for HBase
MIT License
38 stars 14 forks source link

Breaks on JRuby 1.7.13 #34

Closed junegunn closed 10 years ago

junegunn commented 10 years ago

https://github.com/jruby/jruby/pull/1673

This change in JRuby 1.7.13 breaks hbase-jruby

jruby-1.7.12 :004 > a, b = [[1],[2]].to_java(Java::byte[])
 => [byte[1]@74e962a8, byte[2]@64c3f8f]
jruby-1.7.13 :011 > a, b = [[1],[2]].to_java(Java::byte[])
 => [[1], [2]]

Util.parse_column_name is supposed to return two byte arrays for column family and column qualifier. Because of the above change they are now returned as Ruby Arrays which I have to convert back to Java byte array :angry: