-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.4.0
-
sparc
-
solaris_2.6, solaris_8
Name: jk109818 Date: 01/30/2002
FULL PRODUCT VERSION :
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
FULL OPERATING SYSTEM VERSION :
SunOS volans 5.6 Generic_105181-29 sun4u sparc
SUNW,Ultra-5_10
A DESCRIPTION OF THE PROBLEM :
Drawing a BufferedImage with a transparent background
creates a strange pattern.
I wrote a small program which draws a BufferedImage with a
transparent
background color several times. Each time, the pattern
appears more clearly.
I already submitted this bug once, and I got the following
answer:
----------------------------------
Hi David Shay,
Thank you very much for submitting a bug using our bug
submit page. I have
reviewed your case and was successfully able to reproduce
the error on JDK 1.4
Beta2. This seems to be a regression as this worked in JDK
1.3.1_01.
But, i have good news for you. I tested this on our internal
Beta 3 builds and
found this bug to have been fixed. I cannot reproduce the
error on our next
slated release. At this time i do nto have the liberty go
give you any dates but
you can be assured this is fixed in the next release.
Thanks again for taking time to report this issue.
Regards,
Girish
----------------------------------
It seems this was not yet fixed in the beta3 release,
neither in the RC1.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Compile
2.Run
3.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Transparent should be transparent...
The strange pattern should not show.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
import java.awt.image.*;
public class Test extends JComponent
{
private Image image;
public Test()
{
setSize (200, 200);
image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_ARGB);
//Fills the buffer image with transparent color
Graphics2D g = (Graphics2D)image.getGraphics();
g.setPaintMode();
g.setBackground(new Color(0, 0, 0, 0));
g.clearRect(0, 0, 200, 200);
g.drawString("Test component", 10, 10);
}
public void paintComponent(Graphics graphics)
{
//draws the image several times
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
}
public static void main (String args[])
{
JFrame frame = new JFrame ("test");
frame.setSize(300, 300);
frame.setLocation(100, 100);
frame.getContentPane().setLayout(null);
frame.getContentPane().add(new Test());
frame.setVisible(true);
}
}
---------- END SOURCE ----------
Release Regression From : 1.3.1
The above release value was the last known release where this
bug was knwon to work. Since then there has been a regression.
(Review ID: 138865)
======================================================================
Name: gm110360 Date: 10/01/2002
FULL PRODUCT VERSION :
# ./java -version
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)
#
and I also use the following, but not simultaneously
# ./java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
#
FULL OPERATING SYSTEM VERSION :SunOS northstar 5.8
Generic_108528-16 sun4u sparc SUNW,Ultra-4
EXTRA RELEVANT SYSTEM CONFIGURATION :
This problem is seen to exist on Enterprise 450 and Ultra
80 thusfar. Problem is not seen on Ultra 5 platforms. I
haven't tried the Ultra 60 yet.
A DESCRIPTION OF THE PROBLEM :
The background Transparent GIFs fail to display the proper
color, no matter what color is used.
Instead the background transparent gif is replaced by Black
Color only.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install an application that uses Transparent GIFs in
frames.
2. Use J2SE1.4.0_01 or J2SE1.4.1
3. Launch application. Problem is readily apparent.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expected this to work as it did in jre1.3.101 and
previous versions.
If I change a transparent gif to yellow, I expect to see
yellow.
I changed the transparent gif to yellow, but I get black
instead. Occasionally, when I click on an effected object,
which I do occasionally to have my application provide more
detail, the object will flash very briefly to the correct
color only to then have black assert itself.
I think it should show the color I tell it to show vs black.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER WORKAROUND :
Only known workaround is to export the display to a Windows
based NT or 2000 machine instead of a Sun machine.
Or use an Ultra 5 platform instead of an Enterprise 450 or
Ultra 80, which is not possible in many cases for obvious
reasons.
(Review ID: 165128)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
FULL OPERATING SYSTEM VERSION :
SunOS volans 5.6 Generic_105181-29 sun4u sparc
SUNW,Ultra-5_10
A DESCRIPTION OF THE PROBLEM :
Drawing a BufferedImage with a transparent background
creates a strange pattern.
I wrote a small program which draws a BufferedImage with a
transparent
background color several times. Each time, the pattern
appears more clearly.
I already submitted this bug once, and I got the following
answer:
----------------------------------
Hi David Shay,
Thank you very much for submitting a bug using our bug
submit page. I have
reviewed your case and was successfully able to reproduce
the error on JDK 1.4
Beta2. This seems to be a regression as this worked in JDK
1.3.1_01.
But, i have good news for you. I tested this on our internal
Beta 3 builds and
found this bug to have been fixed. I cannot reproduce the
error on our next
slated release. At this time i do nto have the liberty go
give you any dates but
you can be assured this is fixed in the next release.
Thanks again for taking time to report this issue.
Regards,
Girish
----------------------------------
It seems this was not yet fixed in the beta3 release,
neither in the RC1.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Compile
2.Run
3.
EXPECTED VERSUS ACTUAL BEHAVIOR :
Transparent should be transparent...
The strange pattern should not show.
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
import java.awt.image.*;
public class Test extends JComponent
{
private Image image;
public Test()
{
setSize (200, 200);
image = new BufferedImage(200, 200, BufferedImage.TYPE_INT_ARGB);
//Fills the buffer image with transparent color
Graphics2D g = (Graphics2D)image.getGraphics();
g.setPaintMode();
g.setBackground(new Color(0, 0, 0, 0));
g.clearRect(0, 0, 200, 200);
g.drawString("Test component", 10, 10);
}
public void paintComponent(Graphics graphics)
{
//draws the image several times
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
graphics.drawImage(image, 0, 0, null);
}
public static void main (String args[])
{
JFrame frame = new JFrame ("test");
frame.setSize(300, 300);
frame.setLocation(100, 100);
frame.getContentPane().setLayout(null);
frame.getContentPane().add(new Test());
frame.setVisible(true);
}
}
---------- END SOURCE ----------
Release Regression From : 1.3.1
The above release value was the last known release where this
bug was knwon to work. Since then there has been a regression.
(Review ID: 138865)
======================================================================
Name: gm110360 Date: 10/01/2002
FULL PRODUCT VERSION :
# ./java -version
java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)
#
and I also use the following, but not simultaneously
# ./java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
#
FULL OPERATING SYSTEM VERSION :SunOS northstar 5.8
Generic_108528-16 sun4u sparc SUNW,Ultra-4
EXTRA RELEVANT SYSTEM CONFIGURATION :
This problem is seen to exist on Enterprise 450 and Ultra
80 thusfar. Problem is not seen on Ultra 5 platforms. I
haven't tried the Ultra 60 yet.
A DESCRIPTION OF THE PROBLEM :
The background Transparent GIFs fail to display the proper
color, no matter what color is used.
Instead the background transparent gif is replaced by Black
Color only.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install an application that uses Transparent GIFs in
frames.
2. Use J2SE1.4.0_01 or J2SE1.4.1
3. Launch application. Problem is readily apparent.
EXPECTED VERSUS ACTUAL BEHAVIOR :
I expected this to work as it did in jre1.3.101 and
previous versions.
If I change a transparent gif to yellow, I expect to see
yellow.
I changed the transparent gif to yellow, but I get black
instead. Occasionally, when I click on an effected object,
which I do occasionally to have my application provide more
detail, the object will flash very briefly to the correct
color only to then have black assert itself.
I think it should show the color I tell it to show vs black.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER WORKAROUND :
Only known workaround is to export the display to a Windows
based NT or 2000 machine instead of a Sun machine.
Or use an Ultra 5 platform instead of an Enterprise 450 or
Ultra 80, which is not possible in many cases for obvious
reasons.
(Review ID: 165128)
======================================================================
- relates to
-
JDK-6248957 Src mode with non-opaque color does not use optimized loops
- Resolved