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

java.desktop needs to update some deprecated APIs now that we're changing deployment target to 10.9 from 10.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 10, 11
    • Fix Version/s: 13
    • Component/s: client-libs
    • Environment:

      OS X 10.9

    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description


      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:106:15: warning: 'loadNibFile:externalNameTable:withZone:' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          [NSBundle loadNibFile:defaultNibFile externalNameTable: [NSDictionary dictionaryWithObject:self forKey:@"NSOwner"] withZone:nil];
                    ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h:25:1: note: 'loadNibFile:externalNameTable:withZone:' has been explicitly marked deprecated here
      + (BOOL)loadNibFile:(NSString *)fileName externalNameTable:(NSDictionary *)context withZone:(NSZone *)zone NS_DEPRECATED_MAC(10_0, 10_8); // Deprecated in Mac OS X 10.8
      ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:257:9: warning: 'GetCurrentProcess' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
              GetCurrentProcess(&psn);
              ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:415:1: note: 'GetCurrentProcess' has been explicitly marked deprecated here
      MacGetCurrentProcess(ProcessSerialNumber * PSN) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_9;
      ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:412:34: note: expanded from macro 'MacGetCurrentProcess'
          #define MacGetCurrentProcess GetCurrentProcess
                                       ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:428:9: warning: 'GetCurrentProcess' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
              GetCurrentProcess(&psn);
              ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:415:1: note: 'GetCurrentProcess' has been explicitly marked deprecated here
      MacGetCurrentProcess(ProcessSerialNumber * PSN) AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_9;
      ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h:412:34: note: expanded from macro 'MacGetCurrentProcess'
          #define MacGetCurrentProcess GetCurrentProcess
                                       ^
      3 warnings generated.
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:81:31: warning: 'CSCopyMachineName' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          CFStringRef machineName = CSCopyMachineName();
                                    ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/OSUtils.h:444:1: note: 'CSCopyMachineName' has been explicitly marked deprecated here
      CSCopyMachineName(void) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
      ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:119:17: warning: 'FSPathMakeRef' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          OSErr err = FSPathMakeRef((const UInt8 *)&arrayCopy, &ref, &isDirectory);
                      ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115:18: note: 'FSPathMakeRef' has been explicitly marked deprecated here
      extern OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
                       ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:161:20: warning: 'FSPathMakeRefWithOptions' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          OSErr theErr = FSPathMakeRefWithOptions((const UInt8 *)&arrayCopy,
                         ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4160:18: note: 'FSPathMakeRefWithOptions' has been explicitly marked deprecated here
      extern OSStatus FSPathMakeRefWithOptions(const UInt8 *path, OptionBits options, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_4, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
                       ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:213:20: warning: 'FSPathMakeRef' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          OSErr theErr = FSPathMakeRef(pathCString, &fileRef, &isDirectory);
                         ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4115:18: note: 'FSPathMakeRef' has been explicitly marked deprecated here
      extern OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
                       ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:216:14: warning: 'FSResolveAliasFileWithMountFlags' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
          theErr = FSResolveAliasFileWithMountFlags(&fileRef, false, &ignored,
                   ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Aliases.h:279:1: note: 'FSResolveAliasFileWithMountFlags' has been explicitly marked deprecated here
      FSResolveAliasFileWithMountFlags(
      ^
      /Users/erik/hg/jdk/open/src/java.desktop/macosx/native/libosxui/AquaFileView.m:220:18: warning: 'FSRefMakePath' is deprecated: first deprecated in OS X 10.8 [-Wdeprecated-declarations]
              theErr = FSRefMakePath(&fileRef, resolvedPath, MAXPATHLEN);
                       ^
      /private/var/tmp/jib-erik/install/jpg/infra/builddeps/devkit-macosx_x64/Xcode6.3-MacOSX10.9+1.0/devkit-macosx_x64-Xcode6.3-MacOSX10.9+1.0.tar.gz/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h:4086:18: note: 'FSRefMakePath' has been explicitly marked deprecated here
      extern OSStatus FSRefMakePath(const FSRef *ref, UInt8 *path, UInt32 pathBufferSize) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
                       ^
      6 warnings generated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                gziemski Gerard Ziemski
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: