You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2015/09/23 17:50:04 UTC

[jira] [Resolved] (VFS-279) ClassCastException in LocalFileSystem when using OnCall caching

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

Bernd Eckenfels resolved VFS-279.
---------------------------------
       Resolution: Fixed
         Assignee: Bernd Eckenfels
    Fix Version/s: 2.1

commited in http://svn.apache.org/viewvc?view=revision&revision=1704885
I also added a similar fix to the verifying file selector which is used by testing (in anticipation of testing with oncall)

thanks didier and simon

> ClassCastException in LocalFileSystem when using OnCall caching
> ---------------------------------------------------------------
>
>                 Key: VFS-279
>                 URL: https://issues.apache.org/jira/browse/VFS-279
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1, 2.0
>            Reporter: Didier Earith
>            Assignee: Bernd Eckenfels
>             Fix For: 2.1
>
>         Attachments: LocalFileSystem.java, VFS-279.patch
>
>
> When using OnCall caching in the file system, there is a ClassCastException in the LocalFileSystem#doReplicateFile function.
> To fix the issue, I replaced :
>         final LocalFile localFile = (LocalFile) fileObject;
> by 
>         final LocalFile localFile = (LocalFile) FileObjectUtils.getAbstractFileObject(fileObject);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)