[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/23931] New: ToolKit.createImage() throws unexpected IllegalArgu
From: |
mark at gcc dot gnu dot org |
Subject: |
[Bug awt/23931] New: ToolKit.createImage() throws unexpected IllegalArgumentException |
Date: |
17 Sep 2005 20:15:33 -0000 |
The following program throws IllegalArgumentException. Expected was either null,
or a "error image" of some sort.
import java.awt.*;
public class CreateImage
{
public static void main(String[] args)
{
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image img = toolkit.createImage("/non-xisting/path/to/file-image");
System.out.println(img);
}
}
java.lang.IllegalArgumentException: Couldn't load image:
/non-xisting/path/to/file-image
at gnu.java.awt.peer.gtk.GtkImage.<init> (GtkImage.java:223)
at gnu.java.awt.peer.gtk.GtkToolkit.createImage (GtkToolkit.java:261)
at CreateImage.main (CreateImage.java:8)
--
Summary: ToolKit.createImage() throws unexpected
IllegalArgumentException
Product: classpath
Version: 0.18
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mark at gcc dot gnu dot org
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23931
- [Bug awt/23931] New: ToolKit.createImage() throws unexpected IllegalArgumentException,
mark at gcc dot gnu dot org <=