[#41778] [Bug #3515] FreeBSD wrongly raises ECONNRESET on close(2) — Yui NARUSE <redmine@...>

Bug #3515: FreeBSD wrongly raises ECONNRESET on close(2)

12 messages 2010/07/02

[ruby-dev:41847] [Bug #3551] REXML::Document#add uses undefined method 'kind_of'

From: Hiro Asari <redmine@...>
Date: 2010-07-08 17:23:48 UTC
List: ruby-dev #41847
Bug #3551: REXML::Document#add uses undefined method 'kind_of'
http://redmine.ruby-lang.org/issues/show/3551

起票者: Hiro Asari
ステータス: Open, 優先度: Low
カテゴリ: lib
ruby -v: ruby 1.8.8dev (2010-07-08) [i386-darwin10.4.0] 

明らかに kind_of? の間違いです。1.9では直っています。


$ svn diff
Index: lib/rexml/document.rb
===================================================================
--- lib/rexml/document.rb	(revision 28587)
+++ lib/rexml/document.rb	(working copy)
@@ -78,7 +78,7 @@
           x.kind_of?(Element) || x.kind_of?(DocType)
         }
         if @children[ insert_before_index ] # Not null = not end of list
-          if @children[ insert_before_index ].kind_of DocType
+          if @children[ insert_before_index ].kind_of? DocType
             @children[ insert_before_index ] = child
           else
             @children[ index_before_index-1, 0 ] = child


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next