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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P2
    • 7u4
    • 7u4
    • core-libs
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: