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

Reduce public exports in dynamic libraries built from JDK static libraries

XMLWordPrintable

    • b17

      All JNI entrypoints that exist in JDK static libraries are by default declared as exported. If a dynamic library is built from these static libraries, we end up with many exported symbols even though we don't want to provide access to these entrypoints.

      This RFE will allow the definition of JNIEXPORT in jni_md.h to be overridden and will change JDK build to override the declaration of JNIEXPORT for libraries built statically in order to inhibit the entrypoints from being exported. This will still allow linking of these functions into native libraries but will not export the JDK symbols outside of the generated libs.

            bobv Bob Vandette (Inactive)
            bobv Bob Vandette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: