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

[macos] Displaying a native open dialog box raises exception

XMLWordPrintable

    • x86
    • os_x

      FULL PRODUCT VERSION :
      java version "1.8.0_152"
      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      OS X 10.13.2

      A DESCRIPTION OF THE PROBLEM :
      Setting a FileDialog to visible raises the following exception:

      objc[656]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffa439fb68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1208e8cd8). One of the two will be used. Which one is undefined.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run the following code:

      FileDialog fd = new FileDialog(new Frame(),"Open Dialog Test",FileDialog.LOAD);
      fd.setVisible(true);

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The file dialog opens without issue.
      ACTUAL -
      The dialog opens, but the exception described above is raised (I believe from Xcode) corrupting the Java process and leading to unpredictable application behavior.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      From OS X Console:
      Jan 15 13:35:00XXXs-Computer java[68462]: objc[68462]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffaecc7b68) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x17c054cd8). One of the two will be used. Which one is undefined.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.FileDialog;
      import java.awt.Frame;

      public class DialogExceptionTest {
      public static void main(String[] args) {
      FileDialog fd = new FileDialog(new Frame(),"Open Dialog Test",FileDialog.LOAD);
      fd.setVisible(true);
      System.exit(0);
      }
      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      none that I know

      SUPPORT :
      YES

            kaddepalli Krishna Addepalli
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: