John created JRUBY-6395: --------------------------- Summary: Coerce Fixnum to Number Key: JRUBY-6395 URL: https://jira.codehaus.org/browse/JRUBY-6395 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.6.5 Environment: Linux 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 16:11:24 UTC 2011 x86_64 GNU/Linux Reporter: John Priority: Minor
For a Java method that accepts a java.lang.Number. public static void testMethod(Number number) Calling that method with a Ruby Fixnum literal will not work with the following error: testMethod(100) TypeError: could not coerce Fixnum to class java.lang.Number -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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