public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug SWING/22617] New: reopen 13414: ImageIcon("") throws IllegalArgumentException
@ 2005-07-22 20:00 timo dot lindfors at iki dot fi
2005-07-22 20:24 ` [Bug SWING/22617] " timo dot lindfors at iki dot fi
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: timo dot lindfors at iki dot fi @ 2005-07-22 20:00 UTC (permalink / raw)
To: java-prs
When classpath bugs have been moved to gcc bugzilla this bug can be marked as
duplicate of the old classpath bug 13414.
The actual issue is that classpath bug 13414 should be reopened as the bug
happens with current classpath cvs head.
Only way to see the old bug report at the moment seems to be
http://www.mail-archive.com/commit-classpath@gnu.org/msg00849.html
This bug seems to occur already in 2005-05-02 and I can't easily test older
versions since I don't have the required cairo/gnome2 setup available anymore.
--
Summary: reopen 13414: ImageIcon("") throws
IllegalArgumentException
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: SWING
AssignedTo: graydon at redhat dot com
ReportedBy: timo dot lindfors at iki dot fi
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22617
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug SWING/22617] reopen 13414: ImageIcon("") throws IllegalArgumentException
2005-07-22 20:00 [Bug SWING/22617] New: reopen 13414: ImageIcon("") throws IllegalArgumentException timo dot lindfors at iki dot fi
@ 2005-07-22 20:24 ` timo dot lindfors at iki dot fi
2005-07-22 20:25 ` timo dot lindfors at iki dot fi
2005-07-24 17:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: timo dot lindfors at iki dot fi @ 2005-07-22 20:24 UTC (permalink / raw)
To: java-prs
------- Additional Comments From timo dot lindfors at iki dot fi 2005-07-22 20:24 -------
Aha, this bug does not happen if -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D is
specified. Quick'n'dirty fix could something like
Return GtkErrorImage() when image loading fails also when Graphics2D is not used.
---
/home/lindi/cp-src/2005-07-22T100134+0000/classpath/gnu/java/awt/peer/gtk/GtkToolkit.java.~1.71.~ 2005-07-05 01:31:41.000000000 +0300
+++
/home/lindi/cp-src/2005-07-22T100134+0000/classpath/gnu/java/awt/peer/gtk/GtkToolkit.java 2005-07-22 23:21:24.000000000 +0300
@@ -247,7 +247,11 @@
if (useGraphics2D())
return bufferedImageOrError(GdkPixbufDecoder.createBufferedImage
(filename));
else
- return new GtkImage (filename);
+ try {
+ return new GtkImage (filename);
+ } catch (IllegalArgumentException e) {
+ return new GtkErrorImage();
+ }
}
public Image createImage (URL url)
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|reopen 13414: ImageIcon("") |reopen 13414: ImageIcon("")
|throws |throws
|IllegalArgumentException |IllegalArgumentException
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22617
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug SWING/22617] reopen 13414: ImageIcon("") throws IllegalArgumentException
2005-07-22 20:00 [Bug SWING/22617] New: reopen 13414: ImageIcon("") throws IllegalArgumentException timo dot lindfors at iki dot fi
2005-07-22 20:24 ` [Bug SWING/22617] " timo dot lindfors at iki dot fi
@ 2005-07-22 20:25 ` timo dot lindfors at iki dot fi
2005-07-24 17:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: timo dot lindfors at iki dot fi @ 2005-07-22 20:25 UTC (permalink / raw)
To: java-prs
------- Additional Comments From timo dot lindfors at iki dot fi 2005-07-22 20:25 -------
Created an attachment (id=9332)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9332&action=view)
Return GtkErrorImage() when image loading fails also when Graphics2D is not
used.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22617
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug SWING/22617] reopen 13414: ImageIcon("") throws IllegalArgumentException
2005-07-22 20:00 [Bug SWING/22617] New: reopen 13414: ImageIcon("") throws IllegalArgumentException timo dot lindfors at iki dot fi
2005-07-22 20:24 ` [Bug SWING/22617] " timo dot lindfors at iki dot fi
2005-07-22 20:25 ` timo dot lindfors at iki dot fi
@ 2005-07-24 17:57 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-24 17:57 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-24 17:57 -------
*** This bug has been marked as a duplicate of 22979 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22617
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-07-24 17:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 20:00 [Bug SWING/22617] New: reopen 13414: ImageIcon("") throws IllegalArgumentException timo dot lindfors at iki dot fi
2005-07-22 20:24 ` [Bug SWING/22617] " timo dot lindfors at iki dot fi
2005-07-22 20:25 ` timo dot lindfors at iki dot fi
2005-07-24 17:57 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).