REXML::Document::write is unusable
----------------------------------
Key: JRUBY-4349
URL: http://jira.codehaus.org/browse/JRUBY-4349
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.4
Reporter: Xuân Baldauf
Fix For: JRuby 1.3.1
{noformat}
# jirb
irb(main):001:0> require "rexml/document"
=> true
irb(main):002:0> require "rexml/formatters/transitive"
=> true
irb(main):003:0> REXML::Document.new("<a><b/></a>").write($stdout, 1, true,
true)
ArgumentError: wrong # of arguments(2 for 1)
from /usr/bin/../share/jruby/lib/ruby/1.8/rexml/document.rb:189:in `initialize'
from /usr/bin/../share/jruby/lib/ruby/1.8/rexml/document.rb:189:in `new'
from /usr/bin/../share/jruby/lib/ruby/1.8/rexml/document.rb:189:in `write'
from (irb):4
irb(main):004:0>
{noformat}
This seems to be a regression. Interestingly, this bug has already been fixed
in MRI long ago: http://redmine.ruby-lang.org/issues/show/553
--
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