Storing ruby objects in java classes instances
----------------------------------------------

                 Key: JRUBY-2287
                 URL: http://jira.codehaus.org/browse/JRUBY-2287
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: Tiago Brazão


Storing ruby objects in a java instance, we lost the object properties. This 
java integration problem it's very hard to avoid, because when we get the ruby 
object from the java instance, i can't call any defined method!


[java code]
package tests;

public class JavaClass {
   public Object source;
}
[/java code]


[code]
require 'java'

include_class 'tests.JavaClass'

class Example
end

Example.new.class #=> Example

java_class = JavaClass.new
java_class.source = Example.new
java_class.source.class #=> Java::OrgJruby::RubyObject
[/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


Reply via email to