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

XAWT: XAllocSizeHints() is called without holding AWT_LOCK

XMLWordPrintable

    • b35
    • x86
    • linux



      Name: agR10216 Date: 12/27/2003


      Run the following test on Linux using java_g from the tiger build 32
      (without any parameters) and see an InternalError.
      -----------------------------------------------------
      import java.awt.*;

      public class WindowTest {
          public static void main(String args[]) {
              Frame f = new Frame();
              Window w = new Window(f);
              f.setSize(300, 200);
              w.setSize(300, 200);
              f.setLocationByPlatform(true);
              w.setLocationByPlatform(true);
              (args.length == 0 ? w : f).setVisible(true);
          }
      }
      -----------------------------------------------------
      Exception in thread "main" java.lang.InternalError: Following Thread does not have AWT_LOCK !!!!!

              at sun.awt.X11.XlibWrapper.XAllocSizeHints(Native Method)
              at sun.awt.X11.XBaseWindow.getHints(XBaseWindow.java:345)
              at sun.awt.X11.XWindowPeer.promoteDefaultPosition(XWindowPeer.java:578)
              at sun.awt.X11.XWindowPeer.setVisible(XWindowPeer.java:586)
              at sun.awt.X11.XComponentPeer.show(XComponentPeer.java:453)
              at java.awt.Component.show(Component.java:1260)
              at java.awt.Window.show(Window.java:512)
              at java.awt.Component.show(Component.java:1292)
              at java.awt.Component.setVisible(Component.java:1247)
              at WindowTest.main(WindowTest.java:11)
      -----------------------------------------------------

      ###@###.### 2003-12-27
      ======================================================================

            ant Anton Tarasov (Inactive)
            agerasimsunw Alexander Gerasimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: