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

[macos] Support MACOSX_VERSION_MIN target 11.0

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • tbd
    • 17
    • client-libs
    • Cause Known
    • generic
    • os_x

    Description

      Currently MACOSX_VERSION_MIN is set to 10.9 for intel and 11.0 for aarch64
      These produces some issues with deprecated definitions, for example:

      jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m:300:39: error: 'NSAlphaFirstBitmapFormat' is deprecated: first deprecated in macOS 10.14 [-Werror,-Wdeprecated-declarations]
                              bitmapFormat: NSAlphaFirstBitmapFormat | NSAlphaNonpremultipliedBitmapFormat
                                            ^~~~~~~~~~~~~~~~~~~~~~~~
                                            NSBitmapFormatAlphaFirst
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h:161:29: note: 'NSAlphaFirstBitmapFormat' has been explicitly marked deprecated here
      static const NSBitmapFormat NSAlphaFirstBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaFirst", macos(10.5,10.14)) = NSBitmapFormatAlphaFirst;
                                  ^
      jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m:300:66: error: 'NSAlphaNonpremultipliedBitmapFormat' is deprecated: first deprecated in macOS 10.14 [-Werror,-Wdeprecated-declarations]
                              bitmapFormat: NSAlphaFirstBitmapFormat | NSAlphaNonpremultipliedBitmapFormat
                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                       NSBitmapFormatAlphaNonpremultiplied
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSBitmapImageRep.h:162:29: note: 'NSAlphaNonpremultipliedBitmapFormat' has been explicitly marked deprecated here
      static const NSBitmapFormat NSAlphaNonpremultipliedBitmapFormat API_DEPRECATED_WITH_REPLACEMENT("NSBitmapFormatAlphaNonpremultiplied", macos(10.0,10.14)) = NSBitmapFormatAlphaNonpremultiplied;
                                  ^
      jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m:438:34: error: 'NSBorderlessWindowMask' is deprecated: first deprecated in macOS 10.12 [-Werror,-Wdeprecated-declarations]
                            styleMask: NSBorderlessWindowMask
                                       ^~~~~~~~~~~~~~~~~~~~~~
                                       NSWindowStyleMaskBorderless
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:885:32: note: 'NSBorderlessWindowMask' has been explicitly marked deprecated here
      static const NSWindowStyleMask NSBorderlessWindowMask API_DEPRECATED_WITH_REPLACEMENT("NSWindowStyleMaskBorderless", macos(10.0,10.12)) = NSWindowStyleMaskBorderless;

      these definition can be updated to their newer versions (for example NSBorderlessWindowMask to NSWindowStyleMaskBorderless) but this might break current macos_intel code (as minimal version for intel is 10.9 and some of new definitions are 10.12+.
      Solution universal to macos_intel (10.9 target) and macos_arch64(11.0 target) needs to be implemented

      Currently these warnings are suppressed by "DISABLED_WARNINGS_clang := deprecated-declarations" in Awt2dLibraries.gmk

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vkempik Vladimir Kempik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: