Name: jk109818 Date: 04/23/2002
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Redhat Linux 7.2 Kernel 2.4.7-10 Glibc 2.2.4 XFree 4.1.0-15
A DESCRIPTION OF THE PROBLEM :
Some PNG images are not correctly displayed by JDK 1.4 on
Linux. The same images are correctly displayed by JDK 1.4 on
Windows, or on JDK 1.3 on Linux.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
To reproduce the bug. Run the code below with the following
image :
http://www.mirguet.net/bug_jdk1.4/Select.png
The same code works with JDK 1.3.1
and works with JDK1.4.0 on Windows
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expect to see my image in a button.
I see another image.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class PngCrashTest {
public PngCrashTest() {
// frame
JFrame frame = new JFrame("PngCrashTest");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(new FlowLayout());
// button with a png image
ImageIcon ic = new ImageIcon("Select.png");
JButton b = new JButton("png",ic);
frame.getContentPane().add(b);
// show the frame
frame.pack();
frame.show();
}
public static void main(String[] argv) {
PngCrashTest test = new PngCrashTest();
}
}
---------- END SOURCE ----------
CUSTOMER WORKAROUND :
some png images still work fine.
Release Regression From : 1.3.1_03
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Review ID: 145658)
======================================================================