Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: JRuby 1.6.3
-
Fix Version/s: None
-
Component/s: Ruby 1.9.2
-
Labels:None
-
Environment:Kubuntu 11.04 x64, Oracle Java 6 64bit, JRuby 1.6.3
-
Number of attachments :
Description
RubyGems 1.8.8 breaks because JRuby doesn't support the same arguments as standard 1.9.2. This commit, https://github.com/rubygems/rubygems/commit/0825eb33a1f53ae6b5eee0c3a34b832c5837c04b#diff-0, is exposing a problem with JRuby where starting with 1.9.2 a hash or arguments can be passed to the constructor of GzipReader with the io object. See http://www.ruby-doc.org/stdlib/libdoc/zlib/rdoc/classes/Zlib/GzipReader.html#M010126
Zlib::GzipReader.new(*args)
ArgumentError: wrong number of arguments (2 for 1)
from (irb):5:in `evaluate'
from org/jruby/RubyKernel.java:1093:in `eval'
from org/jruby/RubyKernel.java:1419:in `loop'
from org/jruby/RubyKernel.java:1205:in `catch'
from org/jruby/RubyKernel.java:1205:in `catch'
from /home/arthur/bin/jruby/bin/irb:13:in `(root)'
I've filed a bug with RubyGems here https://github.com/rubygems/rubygems/issues/157 but I'm not sure where the issue should get fixed as the ability to pass arguments to GzipReader.new is an undocumented feature.
+1
Interested in this.