> With this patch applied, I get the correct error
>
> UndefinedObject(Object)>>doesNotUnderstand: #asInteger (AnsiExcept.st:1556)
> ObjectDumper>>nextByte (ObjDumper.st:644)
> ObjectDumper>>loadClass (ObjDumper.st:390)
>
> which still should be caught somewhere in ObjectDumper, I think.

This should suffice, any other place where we find an end-of-file
identifies an error in the binary stream and does not need to be
handled -- does it?

diff --git a/kernel/ObjDumper.st b/kernel/ObjDumper.st
index 88a6f54..12a6e4c 100644
--- a/kernel/ObjDumper.st
+++ b/kernel/ObjDumper.st
@@ -293,6 +293,7 @@
        "Special-case metaclasses and other objects"

        | index |
+       stream atEnd ifTrue: [^self pastEnd].
        index := self nextLong.
        ^index < 0
            ifTrue: [self specialCaseLoad: index]

Paolo


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to