Serialization/Persistence Fix
-----------------------------

                 Key: JRUBY-1212
                 URL: http://jira.codehaus.org/browse/JRUBY-1212
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.0.0
            Reporter: Alan McKean
             Fix For: JRuby 1.0.1
         Attachments: transient_metaclass.diff

I have attached a diff for the simpler of two fixes that I have made for 
RubyObject serialization and persistence. It has two parts: the runtime is 
stored in a ThreadLocal.currentRuntime, and is accessed by RubyBoolean and 
RubyNil via Ruby.getCurrentInstance(). Second, the RubyObject metaClass and 
finalizer are transient and their is a new filed in RubyObject called 
'metaClassName'. metaClassName is initialized when the metaClass variable is 
initialized in the constructor. getMetaClass() fetches the object's metaclass 
lazily when it a method on the object is invoked.

Please test the fix and see if it meets your requirements.

-- 
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

Reply via email to