Hi,
my JRuby class looks something like:
class DefaultBaseRenderer < StyledLabel
include TableCellRenderer
include Serializable
end
The question is how to implement the methods with the following
signatures in my JRuby class:
protected void firePropertyChange(String propertyName, Object
oldValue, Object newValue) {
public void firePropertyChange(String propertyName, boolean
oldValue, boolean newValue) { }
Regards
Roger
Ok,
found the solution.
Regards
Roger
Am 21.11.2010 um 19:55 schrieb Roger G.:
Care to share? I take it the issue is two methods with the same name and
same number of parameters, differing only in type?
On Tue, Nov 23, 2010 at 3:55 PM, Roger G. [email protected] wrote:
Hi,
The question is how to implement the methods with the following signatures
–
Paul B.
[email protected]
Cyrus Innovation LLC
200 Varick, Suite 902
New York, NY 10014
phone: (212) 647-7186
fax: (212) 591-6043
http://cyrusinnovation.com
take it the issue is two methods with the same name and same number of
parameters, differing only in type?<<
Yes exactly.
I found a former post but have not tried it yet. But it seems that one
overwrite in JRuby overwrites alle methods with the same name and you
have to check the parameters in the JRuby method and dispatch to the
java implementation with java_send if neccessary.
Regards
Roger