harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitriy Matveev (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-4491) [classlib][awt] Exception when trying to create custom cursor
Date Mon, 23 Jul 2007 12:23:31 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dmitriy Matveev resolved HARMONY-4491.
--------------------------------------

    Resolution: Fixed

> [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.


Mime
View raw message