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

SwingUtilities.paintComponent() causes the VM crash on NT

XMLWordPrintable

    • rc3
    • sparc
    • solaris_2.6



      Name: asC58863 Date: 03/15/2000


      This failure has been found during the JCK tests run and
      happens on NT machine.
      JDKs used: build 1.3.0rc2-U, 1.3.0rc2-V, 1.3.0rc2-W.

      Here is the example demonstrating the bug:
      ------------------ otherTests.java -----------------
      import javax.swing.SwingUtilities;
      import java.awt.*;

      public class otherTests {

          public static void main(String argv[]) {
              Button comp = new Button();
              Frame pn = new Frame();
              pn.add(comp);
              pn.setVisible(true);
              Rectangle bounds = comp.getBounds();
              comp.getGraphics().create(bounds.x, bounds.y, bounds.width,
                                                      bounds.height).getClipBounds();

              SwingUtilities.paintComponent(comp.getGraphics(), comp, pn,
                          bounds.x, bounds.y, bounds.width, bounds.height);
              pn.dispose();
              System.out.println("OKAY");
          }

      }

      -------------- Output from the test -----------------
      D:\home\ans\SwingUtilities>d:\home\java\bin\javac -d d:\home\ans\SwingUtilities otherTests.java

      D:\home\ans\SwingUtilities>d:\home\java\bin\java -Xfuture otherTests
      #
      # An unknown exception code exception has been detected in native code outside the VM.
      # Program counter=0x77f89041
      #

      ------------------------------------------------------

      This example is the minimized JCK test :
      api/javax_swing/SwingUtilities/index.html#otherTests[SwingUtilities3036]


      ======================================================================

            xdengsunw Xianfa Deng (Inactive)
            anssunw Ans Ans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: