Lack of unboxing of Java classes
--------------------------------

                 Key: JRUBY-1107
                 URL: http://jira.codehaus.org/browse/JRUBY-1107
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: Tiago Brazão


If we have an java interface like :
package utils;

public interface JavaInterface {}

And an java class:

package utils;
public class JavaClass {
     public static void print(Class clazz) {
       System.out.println(clazz.getSimpleName());
   }

}

if we try to run the ruby code :

require 'java'

include_class "utils.JavaInterface"
include_class "utils.JavaClass"

JavaClass::print(JavaInterface)

we get : error: argument type mismatch (TypeError).

If we in java class put clazz argument whith type java.lang.Object and we try 
to see what we receive, we get an RubyModule. 

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