commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bug #13414] swing: ImageIcon("") throws IllegalArgumentExce


From: Timo Lindfors
Subject: [commit-cp] [bug #13414] swing: ImageIcon("") throws IllegalArgumentException
Date: Wed, 15 Jun 2005 22:22:25 +0000
User-agent: Elinks

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/





reply via email to

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