Andrew Wason created JRUBY-6657:
-----------------------------------
Summary: Java superclass "initialize" method interferes with
construction
Key: JRUBY-6657
URL: https://jira.codehaus.org/browse/JRUBY-6657
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.6.7
Environment: MacOS 10.7.3
Reporter: Andrew Wason
Attachments: initialize.zip
I have a Java class that defines a method
{code:java}public void initialize(String a, String b){code}
I subclass this in JRuby, and the JRuby subclass defines an initializer with an
argument:
{code}def initialize(a){code}
When I create a JRuby instance, my JRuby initializer is called but then
construction fails with:
{noformat}ArgumentError: wrong number of arguments for constructor
(root) at initialize.rb:10{noformat}
Sample code attached.
Here's a real world example of a Java class that causes this problem
[AbstractAppState.initialize|http://jmonkeyengine.org/javadoc/com/jme3/app/state/AbstractAppState.html#initialize(com.jme3.app.state.AppStateManager,
com.jme3.app.Application)]
--
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