Java integration should call toJava or to_int for array index and value #2658
Java integration does not support int-like objects:
It's also a problem for InfraRuby compatibility:
A patch for core/src/main/java/org/jruby/RubyBasicObject.java:
A patch for core/src/main/java/org/jruby/java/proxies/ArrayJavaProxy.java:
The text was updated successfully, but these errors were encountered:
…jruby#2658) avoids "ugly-sh" failures such as : TypeError: wrong argument type Java::JavaLang::Integer (expected Range) org/jruby/java/proxies/ArrayJavaProxy.java:81:in `'
… review internals ... also added a test for new `` and `=` index conversion (inspired by jruby#2658)