We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JRuby 9.0.0.0 incorrectly reports required parameters as "rest" in Method#parameters.
> ruby -v -e 'def m(x); end; p method(:m).parameters' ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] [[:req, :x]]
> bin/jruby -v -e 'def m(x); end; p method(:m).parameters' jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-05-08 c957028 Java HotSpot(TM) 64-Bit Server VM 25.45-b02 on 1.8.0_45-b14 +jit [linux-amd64] [[:rest, :x]]
The text was updated successfully, but these errors were encountered:
I haven't looked, but's probably shared logic with Proc#parameters. That suffers from the same problem.
Sorry, something went wrong.
JIT bug:
$ rvm jruby-9.0.0.0.pre2 do ruby -X-C -e 'def m(x); end; p method(:m).parameters' [[:req, :x]]
Signature.decode/encode are probably busted.
I need to remember to check both. I guess that JITs fairly quickly now then.
The -e or target script always compile completely before executing unless you pass -X-C.
be4196f
No branches or pull requests
JRuby 9.0.0.0 incorrectly reports required parameters as "rest" in Method#parameters.
The text was updated successfully, but these errors were encountered: