Using AlphaComposite.Clear rule, Graphics.copyArea crashes JDK1.4 on Linux

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.4.1
    • Affects Version/s: 1.4.0, 1.4.0_02
    • Component/s: client-libs
    • None
    • 2d
    • hopper
    • x86, sparc
    • linux_redhat_7.1, solaris_8

        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

              Assignee:
              Dmitri Trembovetski (Inactive)
              Reporter:
              J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: