Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4644807

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.0_02
    • Fix Version/s: 1.4.1
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      hopper
    • CPU:
      x86, sparc
    • OS:
      linux_redhat_7.1, solaris_8

      Backports

        Description

        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

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: