UDPSocket.new is called with 1 parameter, but accepts 0
-------------------------------------------------------
Key: JRUBY-2481
URL: http://jira.codehaus.org/browse/JRUBY-2481
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.1, JRuby 1.1RC1
Environment: discovered while using xmpp4r gem
Reporter: Philipp Hofmann
i tried it in 1.1.1 too, same error except its line 626 there
here is the stacktrace of 1.1RC1
/home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:625:in `initialize': wrong
number of arguments(1 for 0) (ArgumentError)
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:393:in `new'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:393:in
`lazy_initialize'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:388:in `synchronize'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:388:in
`lazy_initialize'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:388:in
`each_resource'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:461:in
`getresources'
from /home/phil/jruby-1.1RC1/lib/ruby/1.8/resolv.rb:461:in `connect'
from
/home/phil/jruby-1.1RC1/lib/ruby/gems/1.8/gems/xmpp4r-0.3.2.99/lib/xmpp4r/client.rb:47:in
`open'
from
/home/phil/jruby-1.1RC1/lib/ruby/gems/1.8/gems/xmpp4r-0.3.2.99/lib/xmpp4r/client.rb:47:in
`connect'
from
/home/phil/jruby-1.1RC1/lib/ruby/gems/1.8/gems/xmpp4r-0.3.2.99/lib/xmpp4r/client.rb:47:in
`initialize'
from jr_psi.rb:31:in `new'
from jr_psi.rb:31
i changed line 626 from
@sock = UDPSocket.new(host.index(':') ? Socket::AF_INET6 : Socket::AF_INET)
to
@sock = UDPSocket.new
to make it work
--
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