No way to call int version of an overloaded method --------------------------------------------------
Key: JRUBY-3834 URL: http://jira.codehaus.org/browse/JRUBY-3834 Project: JRuby Issue Type: Bug Components: Java Integration Environment: Java 5 on Leopard PPC Reporter: Ian Dees Priority: Minor Given the following class: {code:title=Foo.java} class Foo { public void baz(int param) { System.out.println("int version"); } public void baz(long param) { System.out.println("long version"); } }; {code} Both of the following calls end up invoking the long version of the method. {code:title=foo.rb} require 'java' Foo.new.baz(3) Foo.new.baz(java.lang.Integer.new(3)) {code} Per Charlie, the second one should call the int version. -- 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