From: Joseph Jones Date: 2015-12-17T21:07:16-07:00 Subject: [ruby-core:72302] [Ruby trunk - Bug #11740] ObjectSpace.each_object exposes internal metaclasses --56738674_1dbabf00_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 7, 2015 at 00:33:= 32 MST, ko1=40atdot.net wrote:Issue =2311740 has been updated by Koichi S= asada.Assignee set to Koichi SasadaI'll fix it.--------------------------= --------------Bug =2311740: ObjectSpace.each=5Fobject exposes internal me= taclasseshttps://bugs.ruby-lang.org/issues/11740=23change-55292* Author: = Benoit Daloze* Status: Open* Priority: Normal* Assignee: Koichi Sasada* r= uby -v: ruby 2.3.0dev (2015-11-19 trunk 52672) =5Bx86=5F64-linux=5D* Back= port: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN-------------------------= ---------------ObjectSpace.each=5Fobject exposes internal metaclasses and= this might result in assumptions being violated since the metaclass struc= ture is not well preserved.See the attached script for an example.The =23= bla method should always be defined on the metaclass of =22klass=22.See h= ttps://bugs.ruby-lang.org/issues/11360=23note-2 as well in which I warned= against this problem ;)---=46iles--------------------------------objspac= e=5Fexpose=5Fintern=5Fmeta.rb (413 Bytes)-- https://bugs.ruby-lang.org/ = --56738674_1dbabf00_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 7, 2015 at 00:33:32 MST, ko1=40atdot.net wrote:
Issue =2311740 has been updated by = Koichi Sasada.

Assignee set to Koichi Sasada

I'll f= ix it.

----------------------------------------
Bug =2311= 740: ObjectSpace.each=5Fobject exposes internal metaclasses
https://= bugs.ruby-lang.org/issues/11740=23change-55292

* Author: Benoi= t Daloze
* Status: Open
* Priority: Normal
* Assignee: Koi= chi Sasada
* ruby -v: ruby 2.3.0dev (2015-11-19 trunk 52672) =5Bx86=5F= 64-linux=5D
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN----------------------------------------
ObjectSpace.each=5Fobje= ct exposes internal metaclasses and
this might result in assumptions= being violated since the metaclass structure is not well preserved.

See the attached script for an example.
The =23bla method sho= uld always be defined on the metaclass of =22klass=22.

See htt= ps://bugs.ruby-lang.org/issues/11360=23note-2 as well in which I warned a= gainst this problem ;)

---=46iles-----------------------------= ---
objspace=5Fexpose=5Fintern=5Fmeta.rb (413 Bytes)


--
https://bugs.ruby-lang.org/
--56738674_1dbabf00_16c--