summaryrefslogtreecommitdiffstats
path: root/vm/Exception.h
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@android.com>2011-03-07 14:54:14 -0800
committerDan Bornstein <danfuzz@android.com>2011-03-07 14:54:14 -0800
commit47f58250c5177adba475b0b11a36151ac0ce9ab9 (patch)
treebdb2602c8b2ab000436e257c36d0c7f191302cae /vm/Exception.h
parent3111b0c80ca3f90e966371cbab606ac38ed17cad (diff)
downloadandroid_dalvik-47f58250c5177adba475b0b11a36151ac0ce9ab9.tar.gz
android_dalvik-47f58250c5177adba475b0b11a36151ac0ce9ab9.tar.bz2
android_dalvik-47f58250c5177adba475b0b11a36151ac0ce9ab9.zip
Consistency in exception throws.
Make the messages that consist of a series of values consistently use semicolons between the values, and make the call order for exception throws that take both "info about a thing" as well as "info about a use of that thing" take the "info about a thing" argument first. Practical upshot: Adding a second semicolon in the message for StringIndexOutOfBoundsException being thrown for a region, and switching the order of arguments of dvmThrowArrayIndexOutOfBoundsException(). Bug: 3500987 Change-Id: I97eb0046ab8997a68e2d6dfde5dbf3d02290c1f7
Diffstat (limited to 'vm/Exception.h')
-rw-r--r--vm/Exception.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/Exception.h b/vm/Exception.h
index 2653e7629..3022e0484 100644
--- a/vm/Exception.h
+++ b/vm/Exception.h
@@ -215,9 +215,9 @@ void dvmThrowArithmeticException(const char* msg);
/*
* Throw an ArrayIndexOutOfBoundsException in the current thread,
- * using the given index and array length in the detail message.
+ * using the given array length and index in the detail message.
*/
-void dvmThrowArrayIndexOutOfBoundsException(int index, int length);
+void dvmThrowArrayIndexOutOfBoundsException(int length, int index);
/*
* Throw an ArrayStoreException in the current thread, using the given classes'