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

FileSystemView.isFileSystem(File) has inadequate javadoc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 1.4.2
    • 1.4.0, 1.4.1
    • client-libs
    • b16
    • x86, sparc
    • solaris_7, windows_xp

    Description

      From the customer:

      I have spent the last 3
      > days trying to figure out why JFileChooser.DIRECTORIES_ONLY would not
      +work with my extended model. I finally tracked it down to the
      > FilesystemView.isFileSystem(File) call. The documentation does not
      +explain (at all) what this method was expected to return. As such, I had been
      +returning
      > false. The visible effect was that no matter how much code you put in,
      +selecting a directory always changed the button to "OPEN", instead of the
      > approveButtonText. Once I changed FilesystemView.isFileSystem(File) to
      +return file.isDirectory(), it seems to work OK now.


      Customer adds that it appears isFileSystem javadoc comment is fine, it just
      isn't getting generated for some reason. Perhaps there are other javadoc errors
      in the file that are causing javadoc not to correctly parse it.

      Attachments

        Issue Links

          Activity

            People

              leifs Leif Samuelsson (Inactive)
              svioletsunw Scott Violet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: