[Xotcl] serializer bug: searchDefaults

Stefan Sobernig stefan.sobernig at wu-wien.ac.at
Wed Oct 3 11:43:25 CEST 2007


I just stumbled over buggy behaviour of
the XOTcl Serializer with respect to inheritance
relationships and searchDefaults, originally encountered
under AOLServer.

% info patchlevel
8.4.14
% set ::xotcl::version
1.5
% set ::xotcl::patchlevel
.4

I could also re-produce this behaviour with
the most recent xotcl release, 1.5.5 (as there
were no changes to the serializer between 1.5.4 and
1.5.5, I assume)

The snippet attached can be used to reproduce
this behaviour in a non-AOLServer environment.
Interesting enough, the critical part
is to create an instance of the super class BEFORE
declaring the sub class. Commenting the line
"Super create super" yields a sound stream, creating
super yields a broken one.

To reproduce, do the following:
tclsh searchDefaults.xotcl
tclsh /tmp/stream

I tried to have a more thorough look but
I couldn't illuminate myself ...

//stefan
-- 
Stefan Sobernig
Institute of Information Systems and New Media
Vienna University of Economics	
Augasse 2-6
A - 1090 Vienna

`- +43 - 1 - 31336 - 4878 [phone]
`- +43 - 1 - 31336 - 746 [fax]
`- stefan.sobernig at wu-wien.ac.at <mailto:stefan.sobernig at wu-wien.ac.at>
`- ss at thinkersfoot.net <mailto:ss at thinkersfoot.net>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: searchDefaults.xotcl
Url: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20071003/e235cda4/attachment.pl 


More information about the Xotcl mailing list