commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] Commented: (VFS-279) ClassCastException in LocalFileSystem when using OnCall caching
Date Sun, 08 Nov 2009 05:04:32 GMT

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

Ralph Goers commented on VFS-279:
---------------------------------

I looked at the patch and I don't understand why it fixes anything. Can you provide a unit
test that illustrates the behavior?

> 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
>             Fix For: 1.0, 1.1, 2.0
>
>         Attachments: LocalFileSystem.java
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message