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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • emb-8u33, 9
    • core-libs
    • b78

        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.

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

                Created:
                Updated:
                Resolved: