Actions
Bug #553
closedREXML::Document#write(io, 1, true, true) #=> NameError/ArgumentError
Description
=begin
以下でNameErrorになります。
require "rexml/document"
=> true
REXML::Document.new("").write($stdout, 1, true, true)
NameError: uninitialized constant REXML::Formatters::Transitive
from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:inwrite' from (irb):2 from bin/irb:12:in
'
明示的にrexml/formatters/transitiveをrequireしてもArgumentErrorになります。
require "rexml/document"
=> true
require "rexml/formatters/transitive"
=> true
REXML::Document.new("").write($stdout, 1, true, true)
ArgumentError: wrong number of arguments (2 for 1)
from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:innew' from /home/akira/src/ruby/ruby/lib/rexml/document.rb:189:in
write'
from (irb):4
from bin/irb:12:in `'
ruby_1_8も同じです。
添付したパッチで回避できます。
=end
Files
Actions
Like0
Like0Like0Like0