Project

General

Profile

Actions

Bug #6454

closed

Anonymous classes should delete tmp_classpath on dup

Added by tenderlovemaking (Aaron Patterson) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-05-19 trunk 35705) [x86_64-darwin11.4.0]
Backport:
[ruby-core:45132]

Description

When an anonymous class is duped, it should delete tmp_classpath from the iv table so that subsequent calls to inspect on the duped class will have different results.

I've attached a test case to demonstrate the problem.


Files

bad_inspect.patch (508 Bytes) bad_inspect.patch tenderlovemaking (Aaron Patterson), 05/19/2012 07:19 AM
rb_mod_init_copy.bug6454.patch (1.36 KB) rb_mod_init_copy.bug6454.patch drbrain (Eric Hodel), 05/19/2012 08:56 AM
noname (500 Bytes) noname Anonymous, 05/22/2012 12:53 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0