From d1b4dfccd0b38eb7f191f456c9bd0ab3995b1f1a Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 15 Jan 2008 16:33:20 -0700 Subject: [PATCH] fix class cast exception message thinko --- src/compile.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compile.cpp b/src/compile.cpp index 836b519dc2..dba3b01419 100644 --- a/src/compile.cpp +++ b/src/compile.cpp @@ -1498,9 +1498,10 @@ void FORCE_ALIGN checkCast(MyThread* t, object class_, object o) { if (UNLIKELY(o and not isAssignableFrom(t, class_, objectClass(t, o)))) { - object message = makeString(t, "%s as %s", - className(t, objectClass(t, o)), - className(t, class_)); + object message = makeString + (t, "%s as %s", + &byteArrayBody(t, className(t, objectClass(t, o)), 0), + &byteArrayBody(t, className(t, class_), 0)); t->exception = makeClassCastException(t, message); unwind(t); }