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

FileSelector implementations like FileDepthSelector should throw Exception

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2
    • 1.0
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ggregory Gary D. Gregory
            eputz Elias Putz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment