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.

Reply via email to