TypeError when providing nil as the third parameter to
TCPSocket.new/TCPSocket.open
-----------------------------------------------------------------------------------
Key: JRUBY-3875
URL: http://jira.codehaus.org/browse/JRUBY-3875
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.3.1
Environment: ~% jruby -version
jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (OpenJDK Client VM 1.6.0_0)
[i386-java]
~% uname -a
Linux hummingbird 2.6.28-14-generic #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009
i686 GNU/Linux
Reporter: Henrik Hodne
When providing nil as the third parameter to TCPSocket.new/TCPSocket.open it
raises a TypeError.
This works in YARV (Ruby 1.9.1)
Example:
bq. ~/Desktop% irb
>> require 'socket'
=> true
>> s = TCPSocket.new("irc.cluenet.org", 6667, nil)
=> #<TCPSocket:fd 3>
>> quit
~/Desktop% jruby -S irb
>> require 'socket'
=> true
>> s = TCPSocket.new("irc.cluenet.org", 6667, nil)
TypeError: can't convert nil into String
from (irb):3:in `new'
from (irb):3
>> quit
--
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