Looks like I had just made the change for Hash, but you can get the idea from this.

---------- Forwarded message ----------
From: Charles O Nutter < [EMAIL PROTECTED]>
Date: Apr 14, 2006 8:43 PM
Subject: PATCH: Marshalling fixes for user-extended builtin classes
To: jruby-devel@lists.sourceforge.net

Here's an early attempt to get Marshalling working for simple extensions of the builtin classes. I believe that Ruby in these cases is simply looking for an extended builtin classes that doesn't define its own marshalling, such as is the case in FlashHash in Rails and in the MyHash sample I sent earlier.

With this patch, MyHash marshals and unmarshals correctly. There's still some bits missing from marshal.c, and I haven't applied this to the other appropriate builtins, but it's a start.

--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com



--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Attachment: early_userclass_marshalling_fix.patch
Description: Binary data

_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to