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

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

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      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.

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                vsizikov Vladimir Sizikov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: