Created
May 25, 2011 16:56
-
-
Save jsvd/991353 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| irb(main):001:0> require 'java' | |
| => true | |
| irb(main):002:0> 1.to_java.class | |
| => Java::JavaLang::Long | |
| irb(main):003:0> //.to_java.class | |
| ArgumentError: wrong number of arguments (0 for 2) | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:310:in `output_value' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:159:in `eval_input' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:271:in `signal_status' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:155:in `eval_input' | |
| from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:244:in `each_top_level_statement' | |
| from org/jruby/RubyKernel.java:1417:in `loop' | |
| from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:230:in `each_top_level_statement' | |
| from org/jruby/RubyKernel.java:1190:in `catch' | |
| from /opt/jruby/lib/ruby/1.8/irb/ruby-lex.rb:229:in `each_top_level_statement' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:154:in `eval_input' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:71:in `start' | |
| from org/jruby/RubyKernel.java:1190:in `catch' | |
| from /opt/jruby/lib/ruby/1.8/irb.rb:70:in `start' | |
| from /usr/bin/jirb:13:in `(root)' | |
| Maybe IRB bug!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment