URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13414>
Summary: swing: ImageIcon("") throws IllegalArgumentException Project: classpath Submitted by: lindi Submitted on: Wed 06/15/05 at 22:22 Category: classpath Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Platform Version: None _______________________________________________________ Details: Steps to reproduce: 1. Compile and run the attached testcase Expected results: 1. Exits successfully. Actual results: 1. Program throws the following exception: java.lang.IllegalArgumentException: Couldn't load image: at gnu.java.awt.peer.gtk.GtkImage.<init> (GtkImage.java:194) at gnu.java.awt.peer.gtk.GtkToolkit.createImage (GtkToolkit.java:252) at gnu.java.awt.peer.gtk.GtkToolkit.getImage (GtkToolkit.java:366) at javax.swing.ImageIcon.<init> (ImageIcon.java:233) at javax.swing.ImageIcon.<init> (ImageIcon.java:228) at imageicon.main (imageicon.java:5) Testcase: import javax.swing.*; import java.awt.*; public class imageicon extends JFrame { public static void main(String[] args) { ImageIcon ic = new ImageIcon(""); } public imageicon() { } } This bug can be reproduced with automenu from http://www.geocities.com/dvloper/automenu.html It seems to assume that ImageIcon("") does the same as ImageIcon(). _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13414> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Commit-classpath mailing list Commit-classpath@gnu.org http://lists.gnu.org/mailman/listinfo/commit-classpath