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:48:27 UTC
[jira] Created: (ARIES-252) DirectoryImpl.getFile returns FileImpl
for Directories.
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.
[jira] Work started: (ARIES-252) DirectoryImpl.getFile returns
FileImpl for Directories.
Posted by "Andrew Osborne (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ARIES-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on ARIES-252 started by Andrew Osborne.
> 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.
[jira] Resolved: (ARIES-252) DirectoryImpl.getFile returns FileImpl
for Directories.
Posted by "Andrew Osborne (JIRA)" <ji...@apache.org>.
[ 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.