Ruby subclasses of Java classes can override multiple (differently-named)
methods.
----------------------------------------------------------------------------------
Key: JRUBY-3909
URL: http://jira.codehaus.org/browse/JRUBY-3909
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.3.1
Environment: Mac OS 10.5, Java 1.6, Macbook Pro.
Reporter: Jeremy Ashkenas
Priority: Minor
I'm trying to subclass (in Ruby) a Java class that has both size() and
getSize() methods. My new method ends up getting called whenever either method
is called, either from Ruby or from Java. To work around it, I have to
specially return the results from the two different methods. It would be nice
if getSize() would not be aliased to size() if there's a size() method already
present.
--
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