Select with nil arrays should throw an exception
------------------------------------------------
Key: JRUBY-2131
URL: http://jira.codehaus.org/browse/JRUBY-2131
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1RC2
Environment: Ubuntu Gutsy 32 bit, Java 1.6, JRuby 1.1RC2
Reporter: hemant kumar
Fix For: JRuby 1.1RC2
Following code throws exception with Ruby, but with Jruby:
require "socket"
a = TCPSocket.open("192.168.2.252",11001)
a.puts "310 <IBM>##ECHO=lol##"
loop do
read_sock,write_socks,error_socks = select([EMAIL PROTECTED],nil,nil,2)
break if read_sock && !read_sock.empty?
end
p a.gets
--
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