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

Error in java.io.FileFilter javaDoc comments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.0
    • core-libs
    • generic
    • generic



      Name: skT45625 Date: 08/22/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      The current JavaDoc for java.io.File filter interface is:
      /**
       * A filter for abstract pathnames.
       *
       * <p> Instances of this interface may be passed to the <code>{@link
       * File#listFiles(java.io.FileFilter) listFiles(FileFilter)}</code> method
       * of the <code>{@link java.io.FileFilter}</code> class.
       *
       * @since 1.2
       */

      This is errouneous in that the method listFiles(FileFilter) is a method of the
      java.io.File class, and not java.io.FileFilter. A simple misstype, but might
      be confusing to a newcomer.
      (Review ID: 108753)
      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: