You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Elias Putz (JIRA)" <ji...@apache.org> on 2018/03/28 14:29:00 UTC

[jira] [Updated] (VFS-657) FileDepthSelector should throw Exception

     [ https://issues.apache.org/jira/browse/VFS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elias Putz updated VFS-657:
---------------------------
    Description: 
{{org.apache.commons.vfs2.FileDepthSelector}} should throw an {{Exception}} as stated in the interface {{org.apache.commons.vfs2.FileSelector}}, otherwise if try to extend it my 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?

> FileDepthSelector should throw Exception
> ----------------------------------------
>
>                 Key: VFS-657
>                 URL: https://issues.apache.org/jira/browse/VFS-657
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.2
>         Environment: {{org.apache.commons.vfs2.FileDepthSelector}} should throw an {{Exception}} as stated in the interface {{org.apache.commons.vfs2.FileSelector}}, otherwise if try to extend it my 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?
>            Reporter: Elias Putz
>            Priority: Major
>
> {{org.apache.commons.vfs2.FileDepthSelector}} should throw an {{Exception}} as stated in the interface {{org.apache.commons.vfs2.FileSelector}}, otherwise if try to extend it my 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?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)