Returns empty array of "child" objects when used with ROXML in composite object 
(parent-has-children), whereas Ruby behaves as expected
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-5677
                 URL: http://jira.codehaus.org/browse/JRUBY-5677
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.8.7
    Affects Versions: JRuby 1.6
         Environment: Linux krishnan-netbook 2.6.35-28-generic 
#50~ppa1~loms~maverick-Ubuntu SMP Tue Mar 22 19:51:55 UTC 2011 i686 GNU/Linux
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-01-10 769f847) (Java 
HotSpot(TM) Client VM 1.6.0_24) [linux-i386-java]
roxml (3.1.6)

Other dependent gems (installed using jruby -S gem install)
activesupport-3.0.5  
i18n-0.5.0  
nokogiri-1.4.4.2-java
roxml-3.1.6
weakling-0.0.4-java
            Reporter: Krishnan M
         Attachments: jruby.out.txt, roxml_jruby.rb, ruby.out.txt

ROXML (http://roxml.rubyforge.org/) allows marshalling between objects and XML
Furthermore, a class may contain an array of instances of another class such 
that the XML representation is a natural hierarchy
Please see sample test script and output files attached.

When run with Ruby, the script correctly returns instances of child objects 
from the parent object read from XML
When run with JRuby, the script fails to return instances of child objects from 
the parent object read from XML

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