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
$ jrubyc --java myscript.rb $ javac -cp .:./jruby-complete.jar myscript.java
$ 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?