Incorrect namespace for CipherError
------------------------------------
Key: JRUBY-3163
URL: http://jira.codehaus.org/browse/JRUBY-3163
Project: JRuby
Issue Type: Bug
Components: OpenSSL
Affects Versions: JRuby 1.1.5
Environment: Linux akatsuki 2.6.24-16-server #1 SMP Thu Apr 10
13:58:00 UTC 2008 i686 GNU/Linux
Reporter: Matthew Knopp
It looks like CipherError is in the wrong place. In MRI-Ruby it exists as
OpenSSL::CipherError while in JRuby it's in OpenSSL::Cipher::CipherError.
Naturally this causes some problems.
MRI IRB -- Note that *OpenSSL::CipherError* exists and
_OpenSSL::Cipher::CipherError_ does not.
{code:title="mri"}
[EMAIL PROTECTED] which irb
/usr/bin/irb
[EMAIL PROTECTED] irb --version
irb 0.9.5(05/04/13)
[EMAIL PROTECTED] irb
irb(main):002:0> require 'openssl'
=> true
irb(main):005:0> OpenSSL::CipherError
=> OpenSSL::CipherError
irb(main):002:0> OpenSSL::Cipher::CipherError
NameError: uninitialized constant OpenSSL::Cipher::CipherError
from (irb):2
{code}
JRuby's IRB -- Note that *OpenSSL::CipherError* is NOT defined but
_OpenSSL::Cipher::CipherError_ is.
{code:title="jruby"}
[EMAIL PROTECTED] type jirb
jirb is hashed (/opt/jruby/bin/jirb)
[EMAIL PROTECTED] jirb --version
irb 0.9.5(05/04/13)
[EMAIL PROTECTED] jirb
reirb(main):001:0> require 'openssl'
=> true
irb(main):006:0> OpenSSL::Cipher::CipherError
=> OpenSSL::Cipher::CipherError
irb(main):005:0> OpenSSL::CipherError
NameError: uninitialized constant OpenSSL::CipherError
from /opt/jruby/lib/ruby/1.8/irb/ruby-token.rb:102:in `const_missing'
from (irb):6:in `irb_binding'
from /opt/jruby/lib/ruby/1.8/irb/workspace.rb:53:in `eval'
from /opt/jruby/lib/ruby/1.8/irb/workspace.rb:81:in `evaluate'
from /opt/jruby/lib/ruby/1.8/irb/context.rb:219:in `evaluate'
from /opt/jruby/lib/ruby/1.8/irb.rb:150:in `eval_input'
from /opt/jruby/lib/ruby/1.8/irb.rb:259:in `signal_status'
from /opt/jruby/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:244:in
`each_top_level_statement'
from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:230:in `loop'
from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:230:in
`each_top_level_statement'
from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:229:in `catch'
from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:229:in
`each_top_level_statement'
from /opt/jruby/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /opt/jruby/lib/ruby/1.8/irb.rb:70:in `start'
from /opt/jruby/lib/ruby/1.8/irb.rb:69:in `catch'
from /opt/jruby/lib/ruby/1.8/irb.rb:69:in `start'
from /opt/jruby/bin/jirb:19Maybe IRB bug!!
{code}
--
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