'wrong number of arguments' messages are slightly different with CRuby ----------------------------------------------------------------------
Key: JRUBY-5220 URL: http://jira.codehaus.org/browse/JRUBY-5220 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Environment: any Reporter: Hiroshi Nakamura Priority: Minor 'wrong number of arguments' messages are slightly different with CRuby, that cause this 'fix for JRuby' commit for YARD. https://github.com/lsegal/yard/commit/e85ecffebd83fce38a0546f4d2096d7b42fa95b9#diff-1 {noformat} 0% ruby -v -e 'lambda {||}.call(1)' ruby 1.9.3dev (2010-11-26 trunk 29941) [x86_64-linux] -e:1:in `block in <main>': wrong number of arguments (1 for 0) (ArgumentError) from -e:1:in `call' from -e:1:in `<main>' 1% ruby187 -v -e 'lambda {||}.call(1)' ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] -e:1: wrong number of arguments (1 for 0) (ArgumentError) from -e:1:in `call' from -e:1 1% jruby -v -e 'lambda {||}.call(1)' jruby 1.5.5 (ruby 1.8.7 patchlevel 249) (2010-11-10 4bd4200) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [amd64-java] -e:1:in `call': wrong number of arguments(1 for 0) (ArgumentError) from -e:1 1% ruby -v -e 'def foo(); end; foo(1)' ruby 1.9.3dev (2010-11-26 trunk 29941) [x86_64-linux] -e:1:in `foo': wrong number of arguments (1 for 0) (ArgumentError) from -e:1:in `<main>' 1% ruby187 -v -e 'def foo(); end; foo(1)' ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux] -e:1:in `foo': wrong number of arguments (1 for 0) (ArgumentError) from -e:1 1% jruby -v -e 'def foo(); end; foo(1)' jruby 1.5.5 (ruby 1.8.7 patchlevel 249) (2010-11-10 4bd4200) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [amd64-java] -e:1:in `foo': wrong # of arguments(1 for 0) (ArgumentError) from -e:1 1% {noformat} -- 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