JRuby

yaml_initialize is not called

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.0.3, JRuby 1.x+
  • Fix Version/s: JRuby 1.1RC1
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

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.

Issue Links

Activity

Hide
Charles Oliver Nutter added a comment -

same issue, different manifestation

Show
Charles Oliver Nutter added a comment - same issue, different manifestation
Hide
Charles Oliver Nutter added a comment -

Fixed in 5365.

Show
Charles Oliver Nutter added a comment - Fixed in 5365.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: