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

[macOS] Remove desktop module dependencies on JNF Reference APIs

XMLWordPrintable

    • b07

        JNF has a number of APIs that deal with JNI References :

        These : which add no value to the direct JNI call and can be directly replaced
        JNFNewGlobalRef
        JNFDeleteGlobalRef
        JNFNewWeakGlobalRef
        JNFDeleteWeakGlobalRef

        And these which just require a bit of extra handling because they create Cocoa class instances that will ensure the Java Refs are cleared when the carrier object is freed.
        JNFJObjectWrapper
        JNFWeakJObjectWrapper

        There seem to be simpler ways to free all the cases we have.

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: