Built-in timeout method added to wrong class --------------------------------------------
Key: JRUBY-5099 URL: http://jira.codehaus.org/browse/JRUBY-5099 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.5.2 Environment: Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386 jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-09-22 fabdf45) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [darwin-x86_64-java] Reporter: Dave Halliday Assignee: Thomas E Enebo Attachments: test.rb Requiring the 'timeout' standard library seems to add the timeout method to the wrong class. See the attached test program. Expected output is '42'. This works on the MRI versions I've tried (1.8.7 and 1.9.2). JRuby output is an error: test.rb:11: wrong # of arguments(0 for 1) (ArgumentError) Looks like JRuby has added the "timeout" method to the TestClass class when it shouldn't. Seems to be an interaction method_missing. If there is a real timeout method defined with 'def' on the TestClass class then things seems to work as expected. -- 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