Difference between jruby AOT classes with --java flag and without
- by Johnathan Leppert
When I compile a ruby file to a java class using jrubyc, I get different output when compiling with just jrubyc and with jrubyc --java (to generate the java file) and just javac. Why?
Example:
First Method:
$ jrubyc --java myscript.rb
$ javac -cp .:./jruby-complete.jar myscript.java
Second Method:
$ jrubyc myscript.rb
I'd expect the generated classes to be exactly the same, but they're not. What's jrubyc doing under the covers?
Thanks!