Tweak UnsatisfiedLinkError
Change this:
java.lang.UnsatisfiedLinkError: getSuperclass
to this:
java.lang.UnsatisfiedLinkError: Native method not found:
java.lang.Class.getSuperclass:()Ljava/lang/Class;
Change-Id: I23bd4350caf743ad9ba3524da0a10107c63af56a
diff --git a/vm/Native.cpp b/vm/Native.cpp
index 6ccd1ea..be719a7 100644
--- a/vm/Native.cpp
+++ b/vm/Native.cpp
@@ -118,12 +118,12 @@
IF_ALOGW() {
char* desc = dexProtoCopyMethodDescriptor(&method->prototype);
- ALOGW("No implementation found for native %s.%s %s",
+ ALOGW("No implementation found for native %s.%s:%s",
clazz->descriptor, method->name, desc);
free(desc);
}
- dvmThrowUnsatisfiedLinkError(method->name);
+ dvmThrowUnsatisfiedLinkError("Native method not found", method);
}