diff options
| author | Elliott Hughes <enh@google.com> | 2010-10-20 17:14:57 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2010-10-21 10:50:54 -0700 |
| commit | 0016024cdd2bdeef3b98c92f7a8f40a2bc1ff42d (patch) | |
| tree | cc9b742b829d671c27829fb1cbaa6ffe64ac9487 /vm/Exception.h | |
| parent | de805a5f4f9f1f22e086533cfe3f78ebef7a9eed (diff) | |
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
Diffstat (limited to 'vm/Exception.h')
| -rw-r--r-- | vm/Exception.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vm/Exception.h b/vm/Exception.h index b812f732b..559e47f93 100644 --- a/vm/Exception.h +++ b/vm/Exception.h @@ -36,6 +36,12 @@ INLINE void dvmThrowException(const char* exceptionDescriptor, } /* + * Throw an ArrayIndexOutOfBoundsException in the current thread, using the given + * index and array length in the detail message. + */ +void dvmThrowAIOOBE(int index, int length); + +/* * Like dvmThrowChainedException, but takes printf-style args for the message. */ void dvmThrowExceptionFmtV(const char* exceptionDescriptor, const char* fmt, |
