cipher.rb:24: superclass must be a Class (Module given) (TypeError)
-------------------------------------------------------------------

                 Key: JRUBY-4115
                 URL: http://jira.codehaus.org/browse/JRUBY-4115
             Project: JRuby
          Issue Type: Bug
          Components: OpenSSL
    Affects Versions: JRuby-OpenSSL 0.5
         Environment: Java 1.6 on CentOS
            Reporter: Jason Goecke
             Fix For: JRuby-OpenSSL 0.5.2


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:

http://gist.github.com/213842

This may be a fix?:

klass = Class.new {
  include Cipher
  define_method(:initialize) do |*args|
    cipher_name = args.inject(name){|n, arg| "#{n}-#{arg}" }
    super(cipher_name)
  end
}
const_set(name, klass)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.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


Reply via email to