Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 27498 invoked from network); 30 Jan 2007 12:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2007 12:15:54 -0000 Received: (qmail 54485 invoked by uid 500); 30 Jan 2007 12:16:00 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 54384 invoked by uid 500); 30 Jan 2007 12:16:00 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 54366 invoked by uid 99); 30 Jan 2007 12:16:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 04:16:00 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 04:15:53 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 759FD7142A7 for ; Tue, 30 Jan 2007 04:15:33 -0800 (PST) Message-ID: <29945303.1170159333478.JavaMail.jira@brutus> Date: Tue, 30 Jan 2007 04:15:33 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2880) [classlib][awt] Compatibility: java.awt.image.Raster.getPixels(int x,int y,int w,int h,double[] dArray) throws ArrayIndexOutOfBoundsException while RI doesn't In-Reply-To: <28886268.1167139581260.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 [ https://issues.apache.org/jira/browse/HARMONY-2880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468591 ] Andrey Pavlenko commented on HARMONY-2880: ------------------------------------------ In this example Harmony follows the spec. This issue should be closed as non-bug diff. > [classlib][awt] Compatibility: java.awt.image.Raster.getPixels(int x,int y,int w,int h,double[] dArray) throws ArrayIndexOutOfBoundsException while RI doesn't > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2880 > URL: https://issues.apache.org/jira/browse/HARMONY-2880 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ilya Okomin > Priority: Minor > > Harmony throws specified ArrayIndexOutOfBoundsException for java.awt.image.Raster.getPixels(int x,int y,int w,int h,double[] dArray) while > RI works silently. > Check next test case to reproduce issue, it passes on RI and fails on Harmony: > ------------------ test.java ------------------ > import java.awt.Point; > import java.awt.image.DataBufferDouble; > import java.awt.image.PixelInterleavedSampleModel; > import java.awt.image.Raster; > import junit.framework.TestCase; > import junit.textui.TestRunner; > public class test extends TestCase { > public static void main(String args[]) { > TestRunner.run(test.class); > } > public void testRun() { > int[] bandOffsets = new int[233]; > final int dataType = 2; > final int w = 1; > final int h = 1; > final int pixelStride = 5; > final int scanlineStride = 22785; > PixelInterleavedSampleModel sm = new PixelInterleavedSampleModel( > dataType, w, h, pixelStride, scanlineStride, bandOffsets); > final int size = 127; > final int numBanks = 3; > DataBufferDouble dbf = new DataBufferDouble(size, numBanks); > Point point = new Point(); > Raster localRaster = Raster.createRaster(sm, dbf, point); > double[] array1 = new double[] {}; > final int x = 2; > final int y = 2; > final int rw = 2; > final int rh = -1; > localRaster.getPixels(x, y, rw, rh, array1); > } > } > ------------------------------------------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.