Alex Tambellini created JRUBY-6423:
--------------------------------------
Summary: jruby method translation on java objects overriding java
methods
Key: JRUBY-6423
URL: https://jira.codehaus.org/browse/JRUBY-6423
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.6
Reporter: Alex Tambellini
Assignee: Thomas E Enebo
Priority: Critical
JRuby translates the methods like so:
x.getSomething becomes x.something
x.setSomething(newValue) becomes x.something = new_value
x.isSomething becomes x.something?
I have a java class that has a method something(value) and getSomething().
JRuby translates getSomething() into something which makes the java method
something(value) unreachable. So there is no way for me to call the
something(value) method unless I use java_method, java_send, java_alias. It
surprised me that even though the arity of the methods were different jruby
couldn't figure out I wanted to call something(value) and not getSomething().
--
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