Wrong overloaded method for BigDecimal in DecimalFormat
-------------------------------------------------------

                 Key: JRUBY-3818
                 URL: http://jira.codehaus.org/browse/JRUBY-3818
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.3.1
         Environment: Windows - cygwin
Java 1.6.0_14
            Reporter: Scott A Miller


include Java
format = java.text.DecimalFormat.new("#,##0.00")
value = java.math.BigDecimal.new("10")
format.format(value)

bd.rb:4: for method format expected [class long]; got: [java.math.BigDecimal]; 
error: argument type mismatch (TypeError)

Should be calling the Format.format(Object obj) method.

-- 
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


Reply via email to