Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.1
-
Component/s: Core Classes/Modules
-
Labels:None
Description
Because the "attached" reference in a singleton class is now a weakref, we can occasionally run into cases where the singleton class exists but the object to which it is attached does not. This could cause problems if, for example, the singleton class is in use (perhaps in the middle of adding methods) at a point in time when the original object gets GCed. We need a better answer for when the attached object goes away but the singleton class is still alive, rather than waiting for NPEs to show up at some point in the future.
Punting issues from 1.1 RC2 to 1.1 final.