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

-Xcheck:jni indicates there are missing exception checks in Glass

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows 10 64-bit

      Description

      Running my JavaFX application with -Xcheck:jni resulted in several warnings from Glass.

      E.g.:

      WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodV
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
              at com.sun.glass.ui.win.WinApplication$$Lambda$57/665296081.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)



      WARNING in native method: JNI call made without checking exceptions when required to from CallStaticObjectMethodV
              at com.sun.glass.ui.win.WinApplication._enterNestedEventLoopImpl(Native Method)
              at com.sun.glass.ui.win.WinApplication._enterNestedEventLoop(WinApplication.java:218)
              at com.sun.glass.ui.Application.enterNestedEventLoop(Application.java:511)
              at com.sun.glass.ui.EventLoop.enter(EventLoop.java:107)
              at com.sun.javafx.tk.quantum.QuantumToolkit.enterNestedEventLoop(QuantumToolkit.java:583)
              at javafx.stage.Stage.showAndWait(Stage.java:474)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ckyang Chien Yang (Inactive)
                Reporter:
                swpalmer Scott Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: