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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Environment:

      Mac OS X

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: