weakref-based singleton class "attached" can blow up in certain unusual
circumstances
-------------------------------------------------------------------------------------
Key: JRUBY-1770
URL: http://jira.codehaus.org/browse/JRUBY-1770
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Charles Oliver Nutter
Assignee: Charles Oliver Nutter
Fix For: JRuby 1.1
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email