Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64720 invoked from network); 19 Feb 2007 08:47:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2007 08:47:26 -0000 Received: (qmail 97259 invoked by uid 500); 19 Feb 2007 08:47:34 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97236 invoked by uid 500); 19 Feb 2007 08:47:34 -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 97223 invoked by uid 99); 19 Feb 2007 08:47:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 00:47:34 -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; Mon, 19 Feb 2007 00:47:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E49527141F8 for ; Mon, 19 Feb 2007 00:47:05 -0800 (PST) Message-ID: <219451.1171874825933.JavaMail.jira@brutus> Date: Mon, 19 Feb 2007 00:47:05 -0800 (PST) From: "Andrey Pavlenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-1658) [class][awt] BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException 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-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474098 ] Andrey Pavlenko commented on HARMONY-1658: ------------------------------------------ The link is broken, use this one instead http://mail-archives.apache.org/mod_mbox/harmony-dev/200610.mbox/%3c834b3bd50610020451x2956f5c7i7e9e1b39aee7a2a6@mail.gmail.com%3e > [class][awt] BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1658 > URL: https://issues.apache.org/jira/browse/HARMONY-1658 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Denis Kishenko > > RI implementation of BufferedImage.isTileWritable(int,int) throws IllegalArgumentException while Harmony throws ArrayIndexOutOfBoundsException to follow spec. > ========== Spec ============= > public boolean isTileWritable(int tileX, int tileY) > Throws: > ArrayIndexOutOfBoundsException - if both tileX and tileY are not equal to 0 > ============ Test ================ > import java.awt.image.*; > public class Test { > public static void main(String[] argv) { > BufferedImage img = new BufferedImage(10, 16, BufferedImage.TYPE_4BYTE_ABGR); > img.isTileWritable(1,1); > } > } > ========== RI output ============= > java.lang.IllegalArgumentException: Only 1 tile in image > at java.awt.image.BufferedImage.isTileWritable(BufferedImage.java:1526) > at Test.main(Test.java:6) > ========= Harmony output ======== > java.lang.ArrayIndexOutOfBoundsException: Both tileX and tileY are not equal to 0 > at java.awt.image.BufferedImage.isTileWritable(BufferedImage.java:603) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.