When asked to copy an incompatible reference, System.arraycopy() would
complain about the nth element it was to copy, and not the absolute
index of that element.
Change-Id: I0f4a159b96fbedf083c3add57d2e20ee750d70fe
if (copyCount != length) {
dvmThrowExceptionFmt(gDvm.exArrayStoreException,
"source[%d] of type %s cannot be stored in destination array of type %s",
- copyCount, srcObj[copyCount]->clazz->descriptor,
+ srcPos + copyCount, srcObj[copyCount]->clazz->descriptor,
dstClass->descriptor);
RETURN_VOID();
}