Zlib::GzipReader.new is incompatible with 1.9.2
-----------------------------------------------

                 Key: JRUBY-6009
                 URL: https://jira.codehaus.org/browse/JRUBY-6009
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9.2
    Affects Versions: JRuby 1.6.3
         Environment: Kubuntu 11.04 x64, Oracle Java 6 64bit, JRuby 1.6.3
            Reporter: Arthur Shagall
            Assignee: Thomas E Enebo


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.

--
This message is automatically generated by JIRA.
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