Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 75188 invoked from network); 2 Mar 2007 07:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 07:43:11 -0000 Received: (qmail 40484 invoked by uid 500); 2 Mar 2007 07:43:20 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 40465 invoked by uid 500); 2 Mar 2007 07:43:20 -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 40456 invoked by uid 99); 2 Mar 2007 07:43:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 23:43:20 -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; Thu, 01 Mar 2007 23:43:11 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA04C7142E4 for ; Thu, 1 Mar 2007 23:42:50 -0800 (PST) Message-ID: <13186165.1172821370956.JavaMail.jira@brutus> Date: Thu, 1 Mar 2007 23:42:50 -0800 (PST) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-2884) [classlib][awt] Compatibility: java.awt.image.Raster.createPackedRaster() throws RasterFormatException on RI while it doesn't on Harmony In-Reply-To: <18561977.1167207081077.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-2884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko reassigned HARMONY-2884: ---------------------------------------- Assignee: Alexey Petrenko > [classlib][awt] Compatibility: java.awt.image.Raster.createPackedRaster() throws RasterFormatException on RI while it doesn't on Harmony > ---------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-2884 > URL: https://issues.apache.org/jira/browse/HARMONY-2884 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Ilya Okomin > Assigned To: Alexey Petrenko > Priority: Minor > Attachments: HARMONY-2884-Raster.patch, HARMONY-2884-RasterTest.patch > > > Harmony does not throws RasterFormatException for java.awt.image.Raster.createPackedRaster(DataBuffer dataBuffer,int w,int h, int scanlineStride,int[] bandMasks,Point location) while RI throws it. > Next test case passes on RI and fails on Harmony: > ------------- test.java ------------ > import java.awt.Point; > import java.awt.image.DataBufferInt; > import java.awt.image.Raster; > import java.awt.image.RasterFormatException; > import java.awt.image.WritableRaster; > 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() { > DataBufferInt localDataBufferInt = new DataBufferInt(1); > int[] array0 = new int[] { 0, 0, 0 }; > Point localPoint = new Point(10292, 0); > try { > WritableRaster returnValue = Raster.createPackedRaster( > localDataBufferInt, 7, 9, 214, array0, localPoint); > fail("RasterFormatException expected!"); > } catch (RasterFormatException e) { > // expected > System.out.println("Exception : " + e.getMessage()); > } > } > } > -------------------------------------- > Output on RI: > ========== > .Exception : Data array too small (should be 1718 but is 1 ) > Time: 0,131 > OK (1 test) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.