'super()' (with parens) required where 'super' should due ---------------------------------------------------------
Key: JRUBY-3124 URL: http://jira.codehaus.org/browse/JRUBY-3124 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.1.5, JRuby 1.1.4 Reporter: David Kellum Assignee: Thomas E Enebo Priority: Minor A ruby derivation of a java absract class like the following (where the Java class defines a public default constructor): import 'javax.servlet.http.HttpServlet' class TestServlet < HttpServlet def initialize( text ) super @text = text end def doGet( request, response ) response.content_type = "text/plain" response.writer.write( @text ) end end Fails with: ArgumentError: wrong # of arguments for constructor ... :in `initialize' Where as changing the reference to super to include parenthesis: super() ...will work as expected. -- 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