Permit passing Symbol into Java method expecting String
-------------------------------------------------------
Key: JRUBY-2774
URL: http://jira.codehaus.org/browse/JRUBY-2774
Project: JRuby
Issue Type: Improvement
Components: Java Integration
Affects Versions: JRuby 1.1.2
Reporter: Trejkaz
Sometimes it would be nice to permit this:
{code:java}
public interface MyInterface {
public void getProperty(String key);
}
{code}
{code:ruby}
obj.getProperty(:some_key)
{code}
Currently this gives me:
<unknown>:1: #<NameError::Message:0x4f77a035> (NoMethodError)
To some extent it would be nice if hashes with Symbol keys could also support
get() by string from the Java side, but that's probably a different enhancement
and somewhat easier to work around in the first place.
--
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