Deserialize YAML Strings of Java objects to JRuby objects ---------------------------------------------------------
Key: JRUBY-4662 URL: http://jira.codehaus.org/browse/JRUBY-4662 Project: JRuby Issue Type: New Feature Components: Core Classes/Modules, Java Integration Affects Versions: JRuby 1.4 Environment: Ubuntu 9.10, java version "1.6.0_16", Java(TM) SE Runtime Environment (build 1.6.0_16-b01), Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode) jruby 1.4. snakeyaml 1.6 Reporter: Marco Dohnke Attachments: yaml.zip Trying to deserialize a yaml string (which is produced by java lib snakeyaml) to a jruby object. Created object is of type YAML::Yecht::PrivateType, not the real java type. In MRI serializing <--> deserializing of objects works fine. Small sample (attachment): MyObject (java class) is located in a jar file. Loading and converting it to yaml (with snakeyaml) creates a yaml string (serializing). The process of deserializing works, but you get not an object of class "MyObject". Instead you get a YAML::YECHT::PrivateType. Maybe it is possible to create a Java/JRuby object to work with after it got deserialized. (Attachment holds both: little Java project in Netbeans 6.7.1 and little Ruby project in Netbeans 6.7.1; Ruby project loads jar of the Java project) -- 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