Mac: Check: use NewGlobalRef when caching jclass

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • None

      See http://java.sun.com/docs/books/jni/html/refs.html
      "You must not write native methods that store a local reference in a static variable and expect to use the same reference in subsequent invocations."

      This code is not following the rule:
      /rt-closed/glass/glass-mat-lib-windows/src/GlassApplication.cpp
      see classCls var in ClassForName()


      I have checked the native code in javafx-font-native and it is fine.

            Assignee:
            Anthony Petrov (Inactive)
            Reporter:
            Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: