You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2006/08/15 16:02:16 UTC
[jira] Updated: (HARMONY-1156) [DRLVM][JNI]GetByteArrayRegion
differs from RI in throwing ArrayIndexOutOfBoundsException.
[ http://issues.apache.org/jira/browse/HARMONY-1156?page=all ]
Gregory Shimansky updated HARMONY-1156:
---------------------------------------
Attachment: jni.patch
I've removed redundant checks and assertions and used 3 checks for exception:
1. start < 0
2. len < 0
3. start + len > array.length
both in get and set array region JNI functions. The test passes for me. I hope everyone is happy now :)
> [DRLVM][JNI]GetByteArrayRegion differs from RI in throwing ArrayIndexOutOfBoundsException.
> ------------------------------------------------------------------------------------------
>
> Key: HARMONY-1156
> URL: http://issues.apache.org/jira/browse/HARMONY-1156
> Project: Harmony
> Issue Type: Bug
> Components: DRLVM
> Reporter: Jimmy, Jing Lv
> Assigned To: Geir Magnusson Jr
> Priority: Critical
> Attachments: jni.patch
>
>
> Hi,
> JNI method GetByteArrayRegion(byte[],offset,count) throws ArrayIndexOutOfBoundsException if the given offset is equal to length of byte array and the given count is zero. This is different from RI (it returns immediately).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira