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

Wrong spec for java.awt.FileDialog methods getFile() and getDirectory()

XMLWordPrintable

    • sparc
    • solaris_2.6



      Name: vsC58871 Date: 08/18/98


      1. Javadoc comment for method getFile()
      says that this method
      "returns the currently selected file of this file dialog window,
      or null if none is selected.".
        ^^^^^^^
      This is not true.
      In accordance with the AWT's general null-handling methodology,
      this method should return "" instead of null.
      And in JDK12-fcsF getFile() returns "".

      2. Javadoc comment for method getDirectory() says nothing
      about return value when there is no selected file.

      ======================================================================

            Unassigned Unassigned
            vsizikov Vladimir Sizikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: