Project

General

Profile

Actions

Bug #553

closed

REXML::Document#write(io, 1, true, true) #=> NameError/ArgumentError

Added by akira (akira yamada) over 16 years ago. Updated over 13 years ago.

Status:
Closed
ruby -v:
Backport:
[ruby-dev:36230]

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:in write' 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:in new' 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

p (1.79 KB) p akira (akira yamada), 09/09/2008 10:01 PM
Actions #1

Updated by ko1 (Koichi Sasada) about 16 years ago

  • Assignee set to ser (Sean Russell)

=begin

=end

Actions #2

Updated by yugui (Yuki Sonoda) about 16 years ago

  • Target version set to 1.9.1 Release Candidate

=begin

=end

Actions #3

Updated by matz (Yukihiro Matsumoto) about 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r20620.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0