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

Mac: if a native .dylib library exists on Mac but fails to load, the wrong file name is identified in the exception string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0
    • javafx
    • Mac OS X

      This affects Glass and Media as well as Graphics, since they share the same logic.

      On Mac, most native libraries have a .dylib extension while some legacy libraries have a .jnilib extension in the file name. With the fix for RT-19566 the NativeLibLoader first tries to load the library with a .dylib extension, and then failing that, tries to load it with a .jnilib extension. If the .dylib file is present but fails to load for some reason, then we will report the wrong file name and we will lose the cause of the failure. For example, instead of reporting something like "libmat.dylib permission denied" we will simply report that "libmat.jnilib" cannot be loaded. This is confusing.

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: