[前][次][番号順一覧][スレッド一覧]

ruby-changes:10313

From: shyouhei <ko1@a...>
Date: Wed, 28 Jan 2009 22:54:31 +0900 (JST)
Subject: [ruby-changes:10313] Ruby:r21857 (ruby_1_8_7): merge revision(s) 19690:

shyouhei	2009-01-28 22:54:21 +0900 (Wed, 28 Jan 2009)

  New Revision: 21857

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21857

  Log:
    merge revision(s) 19690:
    * eval.c (rb_mod_modfunc): method undefined in included module
      may not have nd_body.  [ruby-core:18738]

  Modified files:
    branches/ruby_1_8_7/ChangeLog
    branches/ruby_1_8_7/eval.c
    branches/ruby_1_8_7/version.h

Index: ruby_1_8_7/ChangeLog
===================================================================
--- ruby_1_8_7/ChangeLog	(revision 21856)
+++ ruby_1_8_7/ChangeLog	(revision 21857)
@@ -1,3 +1,8 @@
+Wed Jan 28 22:51:55 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* eval.c (rb_mod_modfunc): method undefined in included module
+	  may not have nd_body.  [ruby-core:18738]
+
 Wed Jan 28 20:53:27 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* marshal.c (marshal_dump): fixed for check_dump_arg.
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h	(revision 21856)
+++ ruby_1_8_7/version.h	(revision 21857)
@@ -2,7 +2,7 @@
 #define RUBY_RELEASE_DATE "2009-01-28"
 #define RUBY_VERSION_CODE 187
 #define RUBY_RELEASE_CODE 20090128
-#define RUBY_PATCHLEVEL 99
+#define RUBY_PATCHLEVEL 100
 
 #define RUBY_VERSION_MAJOR 1
 #define RUBY_VERSION_MINOR 8
Index: ruby_1_8_7/eval.c
===================================================================
--- ruby_1_8_7/eval.c	(revision 21856)
+++ ruby_1_8_7/eval.c	(revision 21857)
@@ -7697,7 +7697,7 @@
 		body = search_method(rb_cObject, id, &m);
 	    }
 	    if (body == 0 || body->nd_body == 0) {
-		rb_bug("undefined method `%s'; can't happen", rb_id2name(id));
+		print_undef(module, id);
 	    }
 	    if (nd_type(body->nd_body) != NODE_ZSUPER) {
 		break;		/* normal case: need not to follow 'super' link */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]