Issue Type: Bug Bug
Affects Versions: JRuby 1.7.2, JRuby 1.7.1, JRuby 1.7.0
Assignee: Thomas E Enebo
Created: 20/Feb/13 1:50 AM
Description:

In MRI Socket.getaddrinfo accepts symbols such as :INET in place of Socket::AF_INET and :STREAM in place of Socket::SOCK_STREAM. This does not work in JRuby:

This line raises a TypeError ("can't convert Symbol into Integer")

addrinfo = Socket.getaddrinfo(@host, @port, :INET, :STREAM)
Environment: jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_10-ea-b13 [darwin-x86_64]
Project: JRuby
Priority: Major Major
Reporter: Theo Hultberg
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