Better detail messages in ArrayIndexOutOfBoundExceptions.
The RI only includes the index. We've traditionally included nothing. This
patch fixes the portable interpreter to include both the index and the array
length.
Later patches will address the ARM- and x86-specific code.
Change-Id: I9d0e6baacced4e1d33e6cd75965017a38571af67
diff --git a/vm/Exception.c b/vm/Exception.c
index 9ca80e6..7b0a835 100644
--- a/vm/Exception.c
+++ b/vm/Exception.c
@@ -1353,3 +1353,9 @@
exception = cause;
}
}
+
+void dvmThrowAIOOBE(int index, int length)
+{
+ dvmThrowExceptionFmt("Ljava/lang/ArrayIndexOutOfBoundsException;",
+ "index=%d length=%d", index, length);
+}