bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/23931] ToolKit.createImage() throws unexpected IllegalArgumentE


From: mark at gcc dot gnu dot org
Subject: [Bug awt/23931] ToolKit.createImage() throws unexpected IllegalArgumentException
Date: 5 Feb 2006 16:53:42 -0000


------- Comment #8 from mark at gcc dot gnu dot org  2006-02-05 16:53 -------
Created an attachment (id=10782)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10782&action=view)
Patch

Riccardo, could you try this new patch:

2006-02-05  Mark Wielaard  <address@hidden>

        Fixes bug #23931
        * gnu/java/awt/peer/gtk/GtkImage.java (errorImage): New static field.
        (getErrorImage): New static method.
        * gnu/java/awt/peer/gtk/GtkToolkit.java (GtkErrorImage): Removed.
        (bufferedImageOrError): Renamed to ...
        (imageOrError): Renamed from bufferedImageOrError, takes Image.
        Returns GtkImage.getErrorImage() when argument null.
        (createImage(String)): Always use imageOrError.
        (createImage(URL)): Likewise.
        (createImage(ImageProducer)): Likewise.
        (createImage(byte[],int,int)): Likewise.

It combines my earlier patch with your suggestion and actually removes the
GtkErrorImage as Tom wanted.


-- 

mark at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #10772|0                           |1
        is obsolete|                            |
         AssignedTo|unassigned at gcc dot gnu   |mark at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23931





reply via email to

[Prev in Thread] Current Thread [Next in Thread]