开发者

JRuby with YAML

开发者 https://www.devze.com 2023-02-27 03:14 出处:网络
When I us开发者_高级运维e Rails with YAML I change boot.rb with require \"yaml\" YAML::ENGINE.yamler = \"syck\"

When I us开发者_高级运维e Rails with YAML I change boot.rb with

require "yaml"
YAML::ENGINE.yamler = "syck"

It works fine with normal Ruby.

When I transfer the application from Ruby to JRuby, it doesn't work.

Where should I write these lines in JRuby?


Syck is a native gem. a gem that builds native extensions that is. jRuby and native extensions do not mix. Just don't use that syck snippet and your jRuby problem should go away.

0

精彩评论

暂无评论...
验证码 换一张
取 消