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

JNI bugs in sun.awt.windows.WToolkit.eventLoop()

    XMLWordPrintable

Details

    • 01
    • x86
    • windows_nt, windows_2000, windows_xp

    Backports

      Description

        Name: rmT116609 Date: 07/21/2004


        FULL PRODUCT VERSION :
        java version "1.5.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b57)
        Java HotSpot(TM) Client VM (build 1.5.0-beta3-b57, mixed mode, sharing)


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        Hi,

            There are numerous JNI bugs in sun.awt.windows.WToolkit.eventLoop() both in JDK 1.4.2 and JDK 5.0 beta 3 releases. If you run the attached testcase with -Xcheck:jni, then close the JFrame that pops up you will get:

        FATAL ERROR in native method: Bad global or local ref passed to JNI
                at sun.awt.windows.WToolkit.eventLoop(Native Method)
                at sun.awt.windows.WToolkit.run(WToolkit.java:269)
                at java.lang.Thread.run(Thread.java:595)

             This is a minimalistic example of the sort of errors I am getting in my more-complex application. The problem is that in my more complicated application this bug actually causes hangs/crashes to appear at random. .


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        import javax.swing.*;

        public class Test
        {
          public static void main(String[] args)
          {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            f.setVisible( true );
          }
        }
        ---------- END SOURCE ----------
        (Incident Review ID: 286708)
        ======================================================================

        Attachments

          Issue Links

            Activity

              People

                agerasimsunw Alexander Gerasimov (Inactive)
                rmandalasunw Ranjith Mandala (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: