Ruby classes which implement Java interfaces do not unwrap for Java Method 
dispatches
-------------------------------------------------------------------------------------

                 Key: JRUBY-3164
                 URL: http://jira.codehaus.org/browse/JRUBY-3164
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.5
            Reporter: Thomas E Enebo
             Fix For: JRuby 1.1.6


Pretty simple example:

{noformat}
require 'java'

class Base
  include java.util.Comparator

  def compare(a, b)
    a <=> b
  end
end

arr = java.util.ArrayList.new
arr << 1 << 3 << 2
java.util.Collections.sort(arr, Base.new)

p arr
{noformat}

If I change Base.new to Base.new.java_object then all is fine.  

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