Skip to content

Commit

Permalink
* eval.c (rb_add_method): clear replaced method from the cache.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jan 8, 2002
1 parent dcbb422 commit 1a101d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Tue Jan 8 15:54:02 2002 Nobuyoshi Nakada <[email protected]>

* eval.c (rb_add_method): clear replaced method from the cache.

Mon Jan 7 12:38:47 2002 Tanaka Akira <[email protected]>

* lib/time.rb (Time#xmlschema): new optional argument
Expand Down
3 changes: 2 additions & 1 deletion eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ rb_add_method(klass, mid, node, noex)
}
if (OBJ_FROZEN(klass)) rb_error_frozen("class/module");
body = NEW_METHOD(node, noex);
st_insert(RCLASS(klass)->m_tbl, mid, body);
if (st_insert(RCLASS(klass)->m_tbl, mid, body))
rb_clear_cache_by_id(mid);
}

static NODE*
Expand Down
4 changes: 2 additions & 2 deletions version.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define RUBY_VERSION "1.7.2"
#define RUBY_RELEASE_DATE "2002-01-07"
#define RUBY_RELEASE_DATE "2002-01-08"
#define RUBY_VERSION_CODE 172
#define RUBY_RELEASE_CODE 20020107
#define RUBY_RELEASE_CODE 20020108

0 comments on commit 1a101d7

Please sign in to comment.