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

[macos] Crash with use of native file dialog

XMLWordPrintable

    • b27
    • os_x

        Reproduced on openjdk 11 (and 13) with simple test application:

            public static void main(String[] args) {
                SwingUtilities.invokeLater(()->{
                    JFrame f = new JFrame();
                    f.setSize(300, 300);
                    f.setVisible(true);

                    SwingUtilities.invokeLater(()->{
                        FileDialog fd = new FileDialog(f, "test-fd", FileDialog.LOAD);
                        fd.setVisible(true);
                    });
                });
            }

        Navigate to a window with file path input.
        Click the field to reveal file chooser.
        Type ~ to start go to folder feature.
        Click and expand the suggestions list.
        Click on one of the suggestions.

              serb Sergey Bylokhov
              abochkarev Artem Bochkarev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: