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

jdk build fails with splashscreen_sys.m:278 error: 'setScalesWhenResized:' is deprecated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • client-libs
    • Mac OS X 10.10.3 with Xcode 6.3.1

      /Volumes/Work/current/jdks/jdk9/jdk/src/java.desktop/macosx/native/libsplashscreen/splashscreen_sys.m:278:20: error: 'setScalesWhenResized:' is deprecated: first deprecated in OS X 10.6 [-Werror,-Wdeprecated-declarations]
                  [image setScalesWhenResized:YES];
                         ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:255:1: note: 'setScalesWhenResized:' has been explicitly marked deprecated here
      - (void)setScalesWhenResized:(BOOL)flag NS_DEPRECATED_MAC(10_0, 10_6);
      ^
      1 error generated.
      make[3]: *** [/Volumes/Work/current/jdks/jdk9/build/macosx-x86_64-normal-server-fastdebug/support/native/java.desktop/libsplashscreen/splashscreen_sys.o] Error 1
      make[2]: *** [java.desktop-libs] Error 2
      make[2]: *** Waiting for unfinished jobs....

      ERROR: Build failed for target 'images' in configuration 'macosx-x86_64-normal-server-fastdebug' (exit code 2)
      Hint: If caused by a warning, try configure --disable-warnings-as-errors

      make[1]: *** [main] Error 2
      make: *** [images] Error 2

            azvegint Alexander Zvegintsev
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: