Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 61675 invoked from network); 15 Aug 2006 14:05:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2006 14:05:28 -0000 Received: (qmail 36056 invoked by uid 500); 15 Aug 2006 14:05:12 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 36028 invoked by uid 500); 15 Aug 2006 14:05:11 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 35998 invoked by uid 99); 15 Aug 2006 14:05:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 07:05:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 07:05:10 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A55771429B for ; Tue, 15 Aug 2006 14:02:16 +0000 (GMT) Message-ID: <5939080.1155650536433.JavaMail.jira@brutus> Date: Tue, 15 Aug 2006 07:02:16 -0700 (PDT) From: "Gregory Shimansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1156) [DRLVM][JNI]GetByteArrayRegion differs from RI in throwing ArrayIndexOutOfBoundsException. In-Reply-To: <17239200.1155287778004.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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