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

Wrong JNI_OnLoad called if just loaded lib does not have JNI_OnLoad function

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: emb-8u33, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b78

      Backports

        Description

        When libnio.so is loaded ClassLoader.c attempts to find the optional JNI_OnLoad function to initialize the library. Libnio does not have JNI_OnLoad function. However, the dlsym() call returns a pointer to the JNI_OnLoad of libjava.so which is a dependent of libnio.so. This is normal dlsym behavior.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bpb Brian Burkhalter
                  Reporter:
                  bpittore Bill Pittore (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: