Issue Details (XML | Word | Printable)

Key: JRUBY-1786
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Charles Oliver Nutter
Reporter: Adam Payne
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

yaml_initialize is not called

Created: 26/Dec/07 08:36 AM   Updated: 23/Apr/08 10:03 AM   Resolved: 26/Dec/07 12:45 PM
Return to search
Component/s: None
Affects Version/s: JRuby 1.0.3, JRuby 1.x+
Fix Version/s: JRuby 1.1RC1

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

File Attachments: 1. File test_yaml_initialize.rb (0.3 kB)

Issue Links:
Related
 

Testcase included: yes

  • Sub-Tasks:
  • All
  • Open

 Description  « Hide

jvyaml does not call the yaml_initialize callback method when loading an object from YAML. This affects rubygems 0.9.5 rake gem installation where Gem::Version requirements are coded in the gemspec, and Version expects one of initialize, yaml_initialize, or marshal_load to be called. Attached ruby test/unit case demonstrates, and passes in MRI. Fails in jruby-1.0.3 binary release and trunk.



Charles Oliver Nutter made changes - 26/Dec/07 12:21 PM
Field Original Value New Value
Link This issue relates to JRUBY-1768 [ JRUBY-1768 ]
Charles Oliver Nutter added a comment - 26/Dec/07 12:21 PM

same issue, different manifestation


Charles Oliver Nutter added a comment - 26/Dec/07 12:45 PM

Fixed in 5365.


Charles Oliver Nutter made changes - 26/Dec/07 12:45 PM
Assignee Thomas E Enebo [ enebo ] Charles Oliver Nutter [ headius ]
Fix Version/s JRuby 1.1b2 [ 13928 ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Charles Oliver Nutter made changes - 23/Apr/08 10:03 AM
Status Resolved [ 5 ] Closed [ 6 ]