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

Info-privileged.plist claims launchers to be "OpenJDK 7 Command"

XMLWordPrintable

    • b167

        The file src/java.base/macosx/native/launcher/Info-privileged.plist, which is used when building signed macos launcher binaries, contains this snippet:

                <key>CFBundleName</key>
                <string>OpenJDK 7 Command</string>

        I assume this has not been updated since JDK 7. I suggest removing the version number from the file completely, i.e.
        diff --git a/src/java.base/macosx/native/launcher/Info-privileged.plist b/src/java.base/macosx/native/launcher/Info-privileged.plist
        --- a/src/java.base/macosx/native/launcher/Info-privileged.plist
        +++ b/src/java.base/macosx/native/launcher/Info-privileged.plist
        @@ -7,7 +7,7 @@
                 <key>CFBundleInfoDictionaryVersion</key>
                 <string>6.0</string>
                 <key>CFBundleName</key>
        - <string>OpenJDK 7 Command</string>
        + <string>OpenJDK Command</string>
                 <key>CFBundleShortVersionString</key>
                 <string>1.0</string>
                 <key>CFBundleVersion</key>

              ihse Magnus Ihse Bursie
              ihse Magnus Ihse Bursie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: