[armedbear-devel] Catching exceptions from toString() methods

Hi, I've mentioned this on IRC, just so it isn't forgotten: I was getting some objects from Hibernate in the REPL, which worked fine until the toString() method of an object was called and threw an exception, terminating ABCL completely. Attached is a patch which catches all exceptions during the printObject() method of JavaObject. Best regards, Olof

On Jan 6, 2014, at 18:08, Olof-Joachim Frahm <olof@macrolet.net> wrote: […]
I was getting some objects from Hibernate in the REPL, which worked fine until the toString() method of an object was called and threw an exception, terminating ABCL completely. Attached is a patch which catches all exceptions during the printObject() method of JavaObject.
Applied in [r14600][]. [r14600]: http://abcl.org/trac/changeset/14600 -- "A screaming comes across the sky. It has happened before but there is nothing to compare to it now."
participants (2)
-
Mark Evenson
-
Olof-Joachim Frahm