mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +00:00
fix class cast exception message thinko
This commit is contained in:
parent
37b33457c1
commit
d1b4dfccd0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user