to_java working with ruby object instances
------------------------------------------
Key: JRUBY-2053
URL: http://jira.codehaus.org/browse/JRUBY-2053
Project: JRuby
Issue Type: Improvement
Components: Java Integration
Reporter: Tiago Brazão
[code]
require 'java'
class Example
end
a = [Example.new]
example = a[0]
p example.kind_of?(Example) #=> true
p example.class #=> Example
example = a.to_java[0]
p example.kind_of?(Example) #=> false
p example.class #=> Java::OrgJruby::RubyObject
[/code]
Using ruby objects instances inside a object[] (from to_java method) will be
very important. For example, in swing framework, we could create combo boxs,
where the available values were ruby object instances.
This was working at 4926 trunk revision (at least).
--
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