Problem with inheritance and method resolution
----------------------------------------------
Key: JRUBY-4104
URL: http://jira.codehaus.org/browse/JRUBY-4104
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.4.0RC1
Environment: Mac OS X
Reporter: Roger Gilliar
If I call error_message= on an InputTextFieldUpper object I get:
warning: multiple values for a block parameter (0 for 1)
OverlayTextField is a Swing component from the Jide collection. I think the
problem is that getToolTipText exists with 0 and 1 parameter.
{code}
class InputTextField < OverlayTextField
def error_message= msg
setToolTipText msg
@error_message = msg
end
def getToolTipText event
if (event.respond_to? :getX)
if(event.getX > (getWidth - 10))
super() # calls getToolTipText()
else
nil
end
end
end
end
class InputTextFieldUpper < InputTextField
def initialize
get_document.set_document_filter UpperCaseFilter.new
end
def format_text
#
end
end
{code}
--
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