Builder gem incompatible in --1.9 mode --------------------------------------
Key: JRUBY-6064 URL: https://jira.codehaus.org/browse/JRUBY-6064 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.6.4 Environment: Mac, Windows, --1.9 mode Reporter: Nick Klauer Assignee: Thomas E Enebo I hope I'm not barking up the wrong tree here, but I noticed that the [builder|https://github.com/jimweirich/builder] gem (3.0.0) doesn't work at all in JRuby 1.9 mode, but works perfectly in 1.8: {noformat} git clone https://github.com/jimweirich/builder.git JRUBY_OPTS=--1.8 jruby test/test_markupbuilder.rb # runs fine JRUBY_OPTS=--1.9 jruby test/test_markupbuilder.rb # lots of failure {noformat} The general error seems to be: {noformat} 1) Error: test_two_levels(TestIndentedXmlMarkup): TypeError: Builder::XmlMarkup#to_ary should return Array org/jruby/RubyProc.java:245:in `call' /Users/klauer/.rvm/gems/jruby-1.6.4/gems/builder-3.0.0/lib/builder/xmlbase.rb:155:in `_nested_structures' /Users/klauer/.rvm/gems/jruby-1.6.4/gems/builder-3.0.0/lib/builder/xmlbase.rb:63:in `method_missing' test/test_markupbuilder.rb:384:in `test_two_levels' org/jruby/RubyProc.java:262:in `call' /Users/klauer/.rvm/gems/jruby-1.6.4/gems/builder-3.0.0/lib/builder/xmlbase.rb:155:in `_nested_structures' /Users/klauer/.rvm/gems/jruby-1.6.4/gems/builder-3.0.0/lib/builder/xmlbase.rb:63:in `method_missing' test/test_markupbuilder.rb:383:in `test_two_levels' org/jruby/RubyBasicObject.java:1685:in `__send__' {noformat} This also affects the [savon|https://github.com/rubiii/savon] gem, as builder is a dependency on it (albeit `>= 2.1.2`, so I think it could be pared down a bit). Is builder using/doing something incompatible for JRuby, or is JRuby missing something? -- This message is automatically generated by JIRA. 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