There should also be an initialize__method you can call for the same
effect. Any methods we don't directly map (usually due to naming
conflict) we will add a __method alias for.

- Charlie

On Wed, Oct 17, 2012 at 9:04 AM, Lars Westergren
<lars.westerg...@gmail.com> wrote:
> I think you hit this namespace conflict problem:
> http://jira.codehaus.org/browse/JRUBY-45
> so it seems you need to use
>  kp.java_send :initialize, 2048
> instead.
>
>
> On Wed, Oct 17, 2012 at 3:56 PM, Carl Bourne <carl.bou...@me.com> wrote:
>> Hi,
>>
>> I'm trying to use the java.security.KeyPairGenerator via JRuby 1.7 RC2 as
>> per the following code:
>>
>> require 'java'
>> kp = java.security.KeyPairGenerator.getInstance("RSA")
>> puts kp #java.security.KeyPairGenerator$Delegate@45f177b
>>
>> However, when I try to call initialize i.e.
>>
>> kp.initialize(2048)
>>
>> I get the following exception:-
>>
>> TypeError: no public constructors for #<Class:0x7efe8e7a>
>>
>> Any suggestions would be very much appreciated.
>>
>> Best Regards,
>>
>> Carl
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to