Second argument to TCPSocket.new should allow for service name
--------------------------------------------------------------
Key: JRUBY-4850
URL: http://jira.codehaus.org/browse/JRUBY-4850
Project: JRuby
Issue Type: Bug
Components: Standard Library
Affects Versions: JRuby 1.5
Environment: jruby 1.5.0, os x 10.4.9
Reporter: Daniel Berger
Assignee: Thomas E Enebo
MRI allows you to pass a service name for the second argument:
{code}
require 'socket'
tcp = TCPSocket.new('www.ruby-lang.org', 'ftp')
tcp.close
{code}
This is legal with MRI. With JRuby that code raises:
{code}
ArgumentError: invalid value for Integer: "ftp"
{code}
--
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