fix generation of UnsatisfiedLinkError message in resolveNativeMethodData

This commit is contained in:
Joel Dice 2008-02-20 10:51:54 -07:00
parent 9601f2fb04
commit 823148841a

View File

@ -471,7 +471,10 @@ resolveNativeMethodData(Thread* t, object method)
return data;
} else {
object message = makeString
(t, "%s", &byteArrayBody(t, methodCode(t, method), 0));
(t, "%s.%s%s",
&byteArrayBody(t, className(t, methodClass(t, method)), 0),
&byteArrayBody(t, methodName(t, method), 0),
&byteArrayBody(t, methodSpec(t, method), 0));
t->exception = makeUnsatisfiedLinkError(t, message);
return 0;
}