-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0, 1.4.0_02
-
None
-
hopper
-
x86, sparc
-
linux_redhat_7.1, solaris_8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2052220 | 1.4.0_04 | Dmitri Trembovetski | P2 | Resolved | Fixed | 04 |
Running the following simple program on JDK 1.4.0 causes the VM to crash. This only ocurrs if the composite rule is AlphaComposite.Clear/ Changing to anything else (eg Src or ScrOver) works fine. The log file for the crash is attatched.
import java.awt.*;
public class CrashVM extends Component
{
public void paint (Graphics g)
{
// This works
//((Graphics2D)g).setComposite(AlphaComposite.Src);
// But this crashes the VM
((Graphics2D)g).setComposite(AlphaComposite.Clear);
g.copyArea (0, 0, 400, 400, 400, 0);
}
/**
*
*/
public static void main(String[] args)
{
Frame f = new Frame ("Testing Graphics");
f.add (new CrashVM());
f.setSize (640, 480);
f.setVisible(true);
}
}
fixed. run test case provided in the bug report on solaris 8 and no crash found
with java version "Java2D:08-Apr-02@04:09"
###@###.### 2002-04-09
import java.awt.*;
public class CrashVM extends Component
{
public void paint (Graphics g)
{
// This works
//((Graphics2D)g).setComposite(AlphaComposite.Src);
// But this crashes the VM
((Graphics2D)g).setComposite(AlphaComposite.Clear);
g.copyArea (0, 0, 400, 400, 400, 0);
}
/**
*
*/
public static void main(String[] args)
{
Frame f = new Frame ("Testing Graphics");
f.add (new CrashVM());
f.setSize (640, 480);
f.setVisible(true);
}
}
fixed. run test case provided in the bug report on solaris 8 and no crash found
with java version "Java2D:08-Apr-02@04:09"
###@###.### 2002-04-09
- backported by
-
JDK-2052220 Using AlphaComposite.Clear rule, Graphics.copyArea crashes JDK1.4 on Linux
-
- Resolved
-
- duplicates
-
JDK-4749349 Java1.4.1_01 redraw problem with multiple JVM instances
-
- Closed
-