Cannot implement protected method from abstract base class
----------------------------------------------------------

                 Key: JRUBY-874
                 URL: http://jira.codehaus.org/browse/JRUBY-874
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: Pete Schwamb


Java Base Class:

public abstract class BaseClass {
    public void initGame() {
        simpleInitGame();
    }
    protected abstract void simpleInitGame() ;
}

Ruby Class that extends BaseClass:

class MyClass < BaseClass
  protected
  def simpleInitGame
    puts "Got here!"
  end
end

app = MyClass.new
app.initGame

Raises:

BaseClass.java:11:in `BaseClass.initGame': java.lang.AbstractMethodError: 
BaseClass.simpleInitGame()V (NativeException)


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