Andrew Wason created JRUBY-6656: ----------------------------------- Summary: JRuby subclass cannot call super with arguments if parent constructor is varargs Key: JRUBY-6656 URL: https://jira.codehaus.org/browse/JRUBY-6656 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.6.7 Environment: MacOS 10.7.3 Reporter: Andrew Wason Attachments: varargs.zip
I subclass a Java class that has a varargs constructor in JRuby, the JRuby class attempts to call super(a,b) to invoke the superclasses constructor and this fails with: {noformat}ArgumentError: wrong number of arguments for constructor initialize at varargsctor.rb:6 (root) at varargsctor.rb:11 {noformat} Invoking super(nil) works, but super() and super(a,b) fail. Sample Java class and JRuby subclass attached. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.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