Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 20696 invoked from network); 24 Jul 2007 16:28:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 16:28:52 -0000 Received: (qmail 53406 invoked by uid 500); 24 Jul 2007 16:28:54 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 53351 invoked by uid 500); 24 Jul 2007 16:28:53 -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 53330 invoked by uid 99); 24 Jul 2007 16:28:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 09:28:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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, 24 Jul 2007 09:28:51 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D954A7141F6 for ; Tue, 24 Jul 2007 09:28:31 -0700 (PDT) Message-ID: <4722551.1185294511887.JavaMail.jira@brutus> Date: Tue, 24 Jul 2007 09:28:31 -0700 (PDT) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4491) [classlib][awt] Exception when trying to create custom cursor In-Reply-To: <23164166.1184760914043.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-4491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515019 ] Vasily Zakharov commented on HARMONY-4491: ------------------------------------------ The patch committed fine, thanks Dmitriy and Alexei. > [classlib][awt] Exception when trying to create custom cursor > ------------------------------------------------------------- > > Key: HARMONY-4491 > URL: https://issues.apache.org/jira/browse/HARMONY-4491 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Dmitriy Matveev > Assignee: Alexei Zakharov > Attachments: Harmony-4491-Fix.patch, Harmony-4491-Test.patch > > > import java.awt.Cursor; > import java.awt.Point; > import java.awt.Toolkit; > public class TestCursor { > public static void main(String[] args) { > Toolkit tk = Toolkit.getDefaultToolkit(); > byte b[] = { (byte) 0 }; > try{ > Cursor blankCursor = > tk.createCustomCursor( tk.createImage( b ), new Point(0, 0), "" ); > }catch(IndexOutOfBoundsException e){ > e.printStackTrace(); > } > } > } > Exception below: > java.lang.IndexOutOfBoundsException: invalid hotSpot > at java.awt.Toolkit.createCustomCursor(Toolkit.java:740) > at JavaTest.TestFonts2D.main(TestFonts2D.java:51) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.