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

[macos10.15] When shown on Mac OS 10.15 the awt FileDialog sometimes presents files disabled

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Mac OS 10.15.4 Java Open JDK 14.0.1+7

      A DESCRIPTION OF THE PROBLEM :
      If I use the java.awt.FileDialog.FileDialog(Frame) to browse the file system on Mac OS 10.15.4 and newer, sometimes the folders and files (especially in folders with lots of files) appear to be disabled although they can be selected and used. Most of the times the disabled state for them disappears if you wait long enough.
      The problem cannot be reproduced when using the Mac Finder.
      Also the problem could not be reproduced with Mac OS 10.14 and older.
      The problem can be reproduced with the latest Java 14 but it can also be reproduced with Java 1.8.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a java.awt.FileDialog.FileDialog(Dialog) and show it, navigate to a folder with lots of files and scroll through it, sometimes resources appear as disabled/read-only although they can still be selected and used.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The resources presented in the file chooser should not appear as disabled.
      ACTUAL -
      Sometimes resources (files and folders) are presented as disabled in the FileDialog.

      ---------- BEGIN SOURCE ----------
        public static void main(String[] args) {
          FileDialog chooser = new FileDialog((Frame)null);
          chooser.setVisible(true);
        }
      ---------- END SOURCE ----------

      FREQUENCY : often


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: