Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-657

FileSelector implementations like FileDepthSelector should throw Exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 1.0
    • Labels:
      None

      Description

      org.apache.commons.vfs2.FileDepthSelector should throw an Exception as stated in the interface org.apache.commons.vfs2.FileSelector, otherwise if you try to extend it the child class cannot throw an exception.

      I tried to create a class combining the functionality of the FileDepthSelector and FileTypeSelector but couldn't because checking the file type throws an exception.

      Another issue: Why is the depth of FileFilterSelector hard coded?

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary Gregory
              Reporter:
              eputz Elias Putz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: