commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elias Putz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-657) FileSelector implementations like FileDepthSelector should throw Exception
Date Wed, 04 Apr 2018 07:33:00 GMT

    [ https://issues.apache.org/jira/browse/VFS-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16425128#comment-16425128
] 

Elias Putz commented on VFS-657:
--------------------------------

I could close the PR and will close this issue as well, thanks!

> FileSelector implementations like 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
>            Reporter: Elias Putz
>            Assignee: Gary Gregory
>            Priority: Major
>             Fix For: 2.2.1
>
>
> {{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?



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

Mime
View raw message