* src/native/vm/sun/jvm.c
authorpanzi <none@none>
Thu, 16 Aug 2007 19:29:42 +0000 (19:29 +0000)
committerpanzi <none@none>
Thu, 16 Aug 2007 19:29:42 +0000 (19:29 +0000)
(JVM_GetArrayElement): Used exceptions_new_arrayindexoutofboundsexception
where exceptions_throw_arrayindexoutofboundsexception should have been used.

src/native/vm/sun/jvm.c

index 0db6a94b24aad4de3125f684fbd1f739772af54d..ef98fcb0c046d714e66f4cd7e75219b97c0dbffd 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: jvm.c 8331 2007-08-16 19:21:39Z panzi $
+   $Id: jvm.c 8332 2007-08-16 19:29:42Z panzi $
 
 */
 
@@ -2221,7 +2221,7 @@ jobject JVM_GetArrayElement(JNIEnv *env, jobject arr, jint index)
        }
        
        if (index < 0 || index > a->size) {
-               exceptions_new_arrayindexoutofboundsexception(index);
+               exceptions_throw_arrayindexoutofboundsexception();
                return NULL;
        }