GCC Bugzilla – Attachment 11387 Details for
Bug 27454
Crash when trying to display a non-existent ImageIcon file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
TestCase demonstrating the JVM crash
ImageIconTest.java (text/x-java), 477 bytes, created by
Yvan Norsa
on 2006-05-06 10:22:01 UTC
(
hide
)
Description:
TestCase demonstrating the JVM crash
Filename:
MIME Type:
Creator:
Yvan Norsa
Created:
2006-05-06 10:22:01 UTC
Size:
477 bytes
patch
obsolete
>import java.awt.Graphics; > >import javax.swing.ImageIcon; >import javax.swing.JFrame; >import javax.swing.JPanel; > >public class ImageIconTest { > public static void main(String[] args) { > JFrame f = new JFrame(); > JPanel p = new JPanel() { > public void paint(Graphics g) { > ImageIcon icon = new ImageIcon("non-existent-file.jpg"); > g.drawImage(icon.getImage(), 0, 0, 50, 50, null); > } > }; > f.setContentPane(p); > f.setSize(100, 100); > f.setVisible(true); > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27454
:
11387
|
11388