You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Andrew Osborne (JIRA)" <ji...@apache.org> on 2010/03/15 12:52:27 UTC

[jira] Resolved: (ARIES-252) DirectoryImpl.getFile returns FileImpl for Directories.

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

Andrew Osborne resolved ARIES-252.
----------------------------------

    Resolution: Fixed

> DirectoryImpl.getFile returns FileImpl for Directories.
> -------------------------------------------------------
>
>                 Key: ARIES-252
>                 URL: https://issues.apache.org/jira/browse/ARIES-252
>             Project: Aries
>          Issue Type: Bug
>          Components: Application
>            Reporter: Andrew Osborne
>            Assignee: Andrew Osborne
>
> DirectoryImpl.getFile returns FileImpl for Files that are directories. 
> The IFile.convert approach for FileImpl/DirectoryImpl relies on the implementation being the correct class, so this leads to 
> IFile.isDirectory() being true, while IFile.convert() returns null, which breaks the contract defined by the interface.
> The fix corrects the construction logic in getFile to build the appropriate implementation class. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.