Issue Type: Bug Bug
Affects Versions: JRuby 1.6.7
Assignee: Thomas E Enebo
Components: Standard Library
Created: 17/Jun/12 2:31 AM
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>
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]
Project: JRuby
Priority: Blocker Blocker
Reporter: Tasos Laskos
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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