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

XMLWordPrintable

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

      Windows 10 64-bit

      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)

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

              Created:
              Updated:
              Resolved: