Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 25441 invoked from network); 8 Dec 2006 14:44:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2006 14:44:44 -0000 Received: (qmail 96858 invoked by uid 500); 8 Dec 2006 14:44:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 96833 invoked by uid 500); 8 Dec 2006 14:44:52 -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 96813 invoked by uid 99); 8 Dec 2006 14:44:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2006 06:44:52 -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; Fri, 08 Dec 2006 06:44:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 837BE7142F9 for ; Fri, 8 Dec 2006 06:44:23 -0800 (PST) Message-ID: <13994301.1165589063536.JavaMail.jira@brutus> Date: Fri, 8 Dec 2006 06:44:23 -0800 (PST) From: "Ilya Okomin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-2551) [classlib][awt] Compatibility: java.awt.image.BufferedImage.setData(Raster) throws ClassCastException while RI does not MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][awt] Compatibility: java.awt.image.BufferedImage.setData(Raster) throws ClassCastException while RI does not ----------------------------------------------------------------------------------------------------------------------- Key: HARMONY-2551 URL: http://issues.apache.org/jira/browse/HARMONY-2551 Project: Harmony Issue Type: Bug Components: Classlib Reporter: Ilya Okomin Priority: Minor Attachments: test.java Harmony throws unspecified ClassCastException for java.awt.image.BufferedImage.setData(Raster) while RI works silently. You can take a look at the attached testcase test.java. After you look at the test you'll see that Exception is thrown because we are trying to set Raster with number of bands equaled to 704 and dataType == TYPE_SHORT to the BufferedImage with 4 number of bands (ABGR) and dataType == TYPE_BYTE. I'm not sure that RI behaves correct as it works silently when the number of bands in Raster more than number of bands in the created BufferedImage. But if the number of bands in Raster less than in BufferedImage - RI throws ArrayIndexOutOfBoundsException. To check this try to set "int[] array0 = new int[3];" at test.java:23. -- 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