Tweak Java method aliasing in JavaClass to apply ? suffix to any method with
boolean return type, loosen restriction on non-void setters
----------------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-1613
URL: http://jira.codehaus.org/browse/JRUBY-1613
Project: JRuby
Issue Type: Improvement
Components: Java Integration
Affects Versions: JRuby 1.1b1
Reporter: Joshua Graham
Priority: Minor
Fix For: JRuby 1.1b1
Any methods returning a boolean should have an alias with a question-mark, for
example java.util.HashMap.containsKey() should alias to contains_key?
Also, to support the practice of returning "this" (or even the previous value)
from a setter, skip the rule that restricts aliasing for methods matching
"setSomething" only if it returns void.
--
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