Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 76261 invoked from network); 13 Mar 2007 16:03:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Mar 2007 16:03:33 -0000 Received: (qmail 74324 invoked by uid 500); 13 Mar 2007 16:03:39 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 74304 invoked by uid 500); 13 Mar 2007 16:03:39 -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 74288 invoked by uid 99); 13 Mar 2007 16:03:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 09:03:39 -0700 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, 13 Mar 2007 09:03:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1C350714079 for ; Tue, 13 Mar 2007 09:03:10 -0700 (PDT) Message-ID: <33000966.1173801790113.JavaMail.jira@brutus> Date: Tue, 13 Mar 2007 09:03:10 -0700 (PDT) From: "Alexei Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-1447) [classlib][awt] RI Polygon.add(int,int) throws exception after Polygon(new int[2], new int[2], 0) 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-1447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexei Zakharov updated HARMONY-1447: ------------------------------------- Priority: Minor (was: Major) > [classlib][awt] RI Polygon.add(int,int) throws exception after Polygon(new int[2], new int[2], 0) > ------------------------------------------------------------------------------------------------- > > Key: HARMONY-1447 > URL: https://issues.apache.org/jira/browse/HARMONY-1447 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Reporter: Denis Kishenko > Priority: Minor > > Spec doesn't say about any exceptions. Even if Polygon created with empty point buffer (not null but zero length), method addPoint() should reallocate buffer to append new point but RI throws ArrayIndexOutOfBoundsException exception. Seems like RI bug. > ================= Test.java =================== > import java.awt.*; > public class Test { > static public void main(String[] args) { > // Polygon p = new Polygon(); it works > Polygon p = new Polygon(new int[2], new int[2], 0); > p.addPoint(1, 1); > } > } > ============= RI ==================== > java.lang.ArrayIndexOutOfBoundsException > at java.awt.Polygon.addPoint(Polygon.java:262) > at Test.main(Test.java:8) > =========== Harmony ================ > nothing -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.