Emit the same detail message as dalvik for ArrayStoreException from code.
Change-Id: Ib61f7333ee574bcf334994c98249f5b752135ba9
diff --git a/src/runtime_support.cc b/src/runtime_support.cc
index 696ef70..a6f6b0d 100644
--- a/src/runtime_support.cc
+++ b/src/runtime_support.cc
@@ -778,7 +778,7 @@
} else {
FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly);
Thread::Current()->ThrowNewExceptionF("Ljava/lang/ArrayStoreException;",
- "Cannot store an object of type %s in to an array of type %s",
+ "%s cannot be stored in an array of type %s",
PrettyDescriptor(element_class).c_str(),
PrettyDescriptor(array_class).c_str());
return -1; // Failure