Using JavaEmbedUtils.rubyToJava causes problems when passing RubyObject-derived 
parameters back in to Ruby code
---------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-2899
                 URL: http://jira.codehaus.org/browse/JRUBY-2899
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
         Environment: java version "1.5.0_15"
Linux rivet 2.6.24-19-generic #1 SMP Fri Jul 11 23:41:49 UTC 2008 i686 GNU/Linux
            Reporter: Ian Maddison
         Attachments: Java Files

For a Ruby object that has been turned in to a Java object, calling methods on 
that Java object with parameters like RubySymbol objects fails because 
RubySymbol wrappers are not changed in to symbols before reaching the Ruby code.

Example code for this problem is attached.

The 'main' method of BugTest prints the following:


Java::OrgJruby::RubySymbol
false
Symbol
true


I am unable to use ":mysymbol" from Java successfully.


Sorry if the description is a bit poor, I've only been working on this stuff a 
short time!

-- 
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