Java Integration wraps to much
------------------------------

                 Key: JRUBY-1735
                 URL: http://jira.codehaus.org/browse/JRUBY-1735
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: Ola Bini
            Priority: Critical


With a class like this:
{noformat}
package org;

public class Passer {
    public Runnable pass(Runnable obj) {
        return obj;
    }
}
{noformat}

Note the use of Runnable.
This will fail:
{noformat}
require 'java'

class MyRunnable
  include java.lang.Runnable
  
  def run
    puts "running"
  end
  
  def foobar
    puts "foobar"
  end
end


r = MyRunnable.new

r.run
r.foobar

x = org.Passer.new.pass(r)

p x == r

x.run
x.foobar
{noformat}

Since our Java Integration wraps the object even though there's no need to.

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