On Oct 17, 2012, at 12:59 PM, Charles Oliver Nutter <head...@headius.com> wrote:
> On Wed, Oct 17, 2012 at 9:21 AM, Carl Bourne <carl.bou...@me.com> wrote: >> So when I tried: >> >>> kp.java_send :initialize, 2048 >> >> I got the following error:- >> >> TypeError: can't convert Fixnum into Array > > java_send takes the following params: > > * name of the target Java method > * an array of Java types for the target method's signature > * arguments to pass In other words… $ jruby -S irb irb(main):001:0> kp = java.security.KeyPairGenerator.getInstance("RSA") => #<#<Class:0x19e9ad0d>:0x477fd6b7> irb(main):002:0> kp.java_send(:initialize, [Java::int], 2048) => nil --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email