JRuby base64 encoding methods appear as both public and private methods.
------------------------------------------------------------------------
Key: JRUBY-1188
URL: http://jira.codehaus.org/browse/JRUBY-1188
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0
Environment: Darwin gandalf.local 8.10.1 Darwin Kernel Version 8.10.1:
Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
Reporter: Charles Lowell
Fix For: JRuby 1.0.0
Attachments: tc_base64_strangeness.rb
when using 'base64' in the standard library, the module methods are placed into
both the private a public instance methods of Class. This may apply to other
modules, but Base64 was the only one I could reproduce it with.
This behavior is inconsistent with standard ruby, and causes errors in
libraries that leverage this metadata such as needle (used by net-ssh).
I have been able to workaround this by making sure 'base64' is required only
after 'net/ssh' has been finished loading.
The attached testcase passes in ruby, but not jruby.
--
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