From: shugo@... (MAEDA Shugo) Date: 1997-09-21T14:48:45+09:00 Subject: [ruby-dev:508] [Bug] Exception#inspect 前田です。 例外情報の操作をしていて気付いたのですが、Exception#inspectを 呼ぶごとにExceptionのクラスパスに例外のメッセージが付加されて いってしまうようです。 パッチを付けておきます。 -- 前田 修吾 --- error.c.orig Sun Sep 21 14:40:23 1997 +++ error.c Sun Sep 21 14:46:02 1997 @@ -251,7 +251,8 @@ exc_inspect(exc) VALUE exc; { - VALUE str = rb_class_path(CLASS_OF(exc)); + struct RString *classpath = RSTRING(rb_class_path(CLASS_OF(exc))); + VALUE str = str_new(classpath->ptr, classpath->len); str_cat(str, ":", 1); if (RSTRING(exc)->len == 0) {