Skip to content
New issue

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

jrubyc broken for simple (self-executing) scripts in #4472

the-michael-toy opened this issue Feb 3, 2017 · 2 comments


Copy link

the-michael-toy commented Feb 3, 2017

We found this because we wrote a test case for #4445 which failed when we were investigating the possibility of moving from to You can't run jrubyc on even a trivial source input without getting this error

% rvm uninstall --gems jruby-
% rvm install jruby-
% rvm use jruby-
% echo "42" > 42.rb
% jrubyc 42.rb
TypeError: failed to coerce org.objectweb.asm.ClassWriter to
  block in compile_files_with_options at /Users/mtoy/.rvm/rubies/jruby-
  block in compile_files_with_options at /Users/mtoy/.rvm/rubies/jruby-
                                 each at org/jruby/
           compile_files_with_options at /Users/mtoy/.rvm/rubies/jruby-
                         compile_argv at /Users/mtoy/.rvm/rubies/jruby-
                               <main> at /Users/mtoy/.rvm/rubies/jruby-
% jruby -e "puts RUBY_DESCRIPTION"
jruby (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 25.112-b16 on 1.8.0_112-b16 +jit [darwin-x86_64]

Copy link

kares commented Feb 4, 2017

hopefully not totally :) ... such simple self-executing scripts are less common to be jrubyc-iled.
but yeah this should be fixed and covered by the compiler specs.

@kares kares added this to the JRuby milestone Feb 4, 2017
@kares kares changed the title Is jrubyc totally broken in jrubyc broken for simple (self-executing) scripts in Feb 4, 2017
Copy link

headius commented Feb 8, 2017

Delete lib/jruby-truffle.jar and this should work ok. It's picking up the non-shaded ASM classes from that jar.

JRuby will no longer ship jruby-truffle, so this is fixed already.

@headius headius closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants