You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Geir Magnusson Jr (JIRA)" <ji...@apache.org> on 2006/08/14 18:25:15 UTC
[jira] Commented: (HARMONY-1156) [DRLVM][JNI]GetByteArrayRegion
differs from RI in throwing ArrayIndexOutOfBoundsException.
[ http://issues.apache.org/jira/browse/HARMONY-1156?page=comments#action_12427930 ]
Geir Magnusson Jr commented on HARMONY-1156:
--------------------------------------------
Did you test the JNI method directly?
Right now, we do behave as the spec requires, although I too find it compelling to switch to behave like RI, as the RI behavior is reasonable.
> [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
>
> 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