Passing n-dimensional array to Java
-----------------------------------

                 Key: JRUBY-5152
                 URL: http://jira.codehaus.org/browse/JRUBY-5152
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.5.3
         Environment: Windows 7
            Reporter: Eddie Riveron


I have a Java function that I need to pass an 'int[][]'.  In ruby, I have code 
to construct a 2 dimensional array:

a = Java::int[positions.size,2].new

but when I pass 'a' into the function that takes the 'int[][]', I get an error:

cannot convert instance of class org.jruby.java.proxies.ConcreteJavaProxy to 
class [[I

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