On Fri, Sep 9, 2011 at 7:48 PM, Ramon Leon <ramon.leon@allresnet.com> wrote:
On 09/09/2011 10:36 AM, Paul DeBruicker wrote:
#sandstoneDeepCopyVisits: is calling basicNew: on the class MethodContext.
Because SandstoneDb isn't meant to save special objects like classes, blocks, or method context's, it's meant to save plain old Smalltalk data objects from your domain the same way you'd use a relational database. It's a simple active record data store for quick prototyping based on serialized files, not a full blown object database that can save every possible object type.
Be careful with SortedCollection instances for example ;)
And I'd guess that it's not a Fuel issue but a SandstoneDB issue because I
get the same error if, when using the same image, in a workspace I change the SDSerializer to the SDSmartRefStreamSerializer and try again.
Correct. Now, apparently fuel might be able to save some of those special objects like blocks or classes
indeed. Contexts, classes, CompiledMethod, etc...
, but SandstoneDb will throw an error if you attempt to save a class regardless of what the serializer supports.
-- Ramon Leon http://onsmalltalk.com
-- Mariano http://marianopeck.wordpress.com