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

Mac: Check: use NewGlobalRef when caching jclass

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: