Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Standard Library
-
Labels:None
-
Environment:Linux 3.0.0-16-generic #29-Ubuntu SMP Tue Feb 14 12:48:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
-
Number of attachments :
Description
jruby-1.6.7 :001 > require 'socket' => true jruby-1.6.7 :002 > Socket.new( :INET, :STREAM ) ArgumentError: wrong number of arguments (2 for 3) from org/jruby/RubyIO.java:876:in `new' from (irb):2:in `evaluate' from org/jruby/RubyKernel.java:1088:in `eval' from org/jruby/RubyKernel.java:1410:in `loop' from org/jruby/RubyKernel.java:1197:in `catch' from org/jruby/RubyKernel.java:1197:in `catch' from /home/zapotek/.rvm/rubies/jruby-1.6.7/bin/jirb:17:in `(root)' jruby-1.6.7 :003 > Socket.new( :INET, :STREAM, 0 ) TypeError: can't convert Symbol into Integer from org/jruby/ext/socket/RubySocket.java:215:in `initialize' from org/jruby/RubyIO.java:876:in `new' from (irb):3:in `evaluate' from org/jruby/RubyKernel.java:1088:in `eval' from org/jruby/RubyKernel.java:1410:in `loop' from org/jruby/RubyKernel.java:1197:in `catch' from org/jruby/RubyKernel.java:1197:in `catch' from /home/zapotek/.rvm/rubies/jruby-1.6.7/bin/jirb:17:in `(root)'
irb(main):001:0> require 'socket' => true irb(main):002:0> Socket.new( :INET, :STREAM ) => #<Socket:fd 5> irb(main):003:0> Socket.new( :INET, :STREAM, 0 ) => #<Socket:fd 6>
Issue Links
- relates to
-
JRUBY-6393
Implement Addrinfo class
-
It works on master on my MBP. Please try it there. There won't be another 1.6.x release. It could be Linux specific, too.