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

[macosx] Compile error in jdk.deploy.osx when building on 10.11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • x86
    • os_x

      Error reported when building on OSX 10.11:

      * For target BUILD_LIBOSX_CFileManager.m:
      /Users/micheltrudeau/WorkDir/OpenJDK/jdk9/jdk/src/jdk.deploy.osx/macosx/native/libosx/CFileManager.m:224:40: error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull]
              [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation
                                             ^
      1 error generated.

      On investigation, NSWorkspace performFileOperation is deprecated in 10.11 so it should be replaced (eventually).

      The error is caused by us setting the destination to nil, the documentation says that it must be set to @"" when it's not needed.

            serb Sergey Bylokhov
            ddehaven David Dehaven (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: