java interface in base class cannot implement in derived class
--------------------------------------------------------------

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


Whether this should work or not it should not ClassCastException:

{noformat}
require 'java'

class Base
  include java.lang.Comparable
end

class Foo < Base
  def compareTo(a, b)
    a <=> b
  end
end

p Foo.new
{noformat}

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