Ruby class extending Java class and including interface only generates
interface impl proxy
-------------------------------------------------------------------------------------------
Key: JRUBY-4571
URL: http://jira.codehaus.org/browse/JRUBY-4571
Project: JRuby
Issue Type: Bug
Components: Java Integration
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.5
This is a problem with the new interface impl logic.
thing.rb:
{noformat}
require 'java'
class Thing < java.util.ArrayList
include java.lang.Runnable
def initialize; super(); end
def run; end
end
Java::Yabba.new.array_list= Thing.new
{noformat}
Yabba.java
{noformat}
import java.util.ArrayList;
public class Yabba {
public void setArrayList(ArrayList r) {}
}
{noformat}
error:
{noformat}
~/projects/jruby/tmp/include_package_example ➔ jruby -J-cp . thing.rb
thing.rb:11: for method Yabba.setArrayList expected [class
java.util.ArrayList]; got: [org.jruby.gen.InterfaceImpl2140576068]; error:
argument type mismatch (TypeError)
--
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