Error invoking overloaded Java constructor
------------------------------------------

                 Key: JRUBY-1326
                 URL: http://jira.codehaus.org/browse/JRUBY-1326
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.0.1
         Environment: Windows XP
            Reporter: Graham Miller


When trying to execute the following:

$ bin/jruby -e "require 'java'; java.math.BigDecimal.new(20)"

I get the following error:

file:/D:/dev/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/proxy/concrete.rb:23
:in `initialize': expected [java.math.BigInteger], got [java.lang.Long, ...] (Ty
peError)
        from file:/D:/dev/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/proxy/c
oncrete.rb:6:in `new'
        from file:/D:/dev/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/proxy/c
oncrete.rb:6:in `new'
        from :1

BigDecimal has at least one appropriate constructor, BigDecimal(long)

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