Method "class" fails on regexp converted to java in IRB -------------------------------------------------------
Key: JRUBY-5822 URL: http://jira.codehaus.org/browse/JRUBY-5822 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.6 Environment: Arch Linux, Red Hat Enterprise Linux 5 Reporter: João Duarte Priority: Minor 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!! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email