Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby-OpenSSL 0.5
-
Fix Version/s: JRuby 1.7.0.pre1
-
Component/s: OpenSSL
-
Labels:None
-
Environment:Java 1.6 on CentOS
-
Number of attachments :
Description
I am using JRuby v1.3.1 with JRuby-OpenSSL v0.5.2 (gem added to a jruby-complete.jar). When I need to use OpenSSL to consume a SOAP Web Service I get an error. Looking at the code it appears that indeed a module is being subclassed.
The error details are here:
This may be a fix?:
klass = Class.new {
include Cipher
define_method(:initialize) do |*args|
cipher_name = args.inject(name){|n, arg| "#
-#
{arg}" }
super(cipher_name)
end
}
const_set(name, klass)
I did give the above patch a try, but then this error pops up:
cipher.rb:25: wrong argument type Class (expected Module) (TypeError)