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

System.mapLibraryName appends ".dylib" on Mac, OSGi expects legacy ".jnilib" extension

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Won't Fix
    • Affects Version/s: 7u4
    • Fix Version/s: 7u4
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      os_x

      Description

      Apple encouraged developers to use native library file extensions of .jnilib instead of .dylib. When used in some OSGi frameworks, this appears to be enforced, i.e. native library files must be named with the .jnilib extension and manifest entries need to include that extension as well. In JDeveloper, the Equinox framework appears to call System.mapLibraryName() directly to construct filenames. The Apple JDK always returns .jnilib while the Oracle JDK returns .dylib extensions.

      This difference causes JDeveloper to fail to properly load OSGi bundles with native libraries. For compatibility reasons, Oracle cannot just change the return value for System.mapLibraryName() to match Apple's value. An alternate solution needs to be
      designed to fix this bug.

        Attachments

          Activity

            People

            Assignee:
            michaelm Michael McMahon
            Reporter:
            jmelvin James Melvin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: