Matt Hauck created JRUBY-6483: --------------------------------- Summary: Ruby array to_java does not appear to work Key: JRUBY-6483 URL: https://jira.codehaus.org/browse/JRUBY-6483 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.6.6 Environment: Mac OSX, Windows 7, Ruby 1.8 and 1.9 mode Reporter: Matt Hauck
I cannot seem to turn Ruby arrays to Java arrays with to_java. It does not appear to recognize the class: irb(main):002:0> require 'java' => true irb(main):003:0> [1, 2].to_java => #<#<Class:0x1ae3e881>:0x68b57af1> irb(main):004:0> [1, 2].to_java.class => #<Class:0x1ae3e881> This is not the same output as on the wiki (https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby): [1,2,3].to_java => [Ljava.lang.Object;@1a32ea4 I've tried this on 1.6.5.1, 1.6.6, 1.6.7, on windows and mac and it all looks the same... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email