commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mario Ivankovits (JIRA)" <>
Subject [jira] Commented: (VFS-82) ClassCastException in AbstractFileObject when using OnCall caching
Date Wed, 27 Sep 2006 06:57:51 GMT
    [ ] 
Mario Ivankovits commented on VFS-82:

Thanks, just, could you please rework you patch to use

AbstractFileObject afo = FileObjectUtils.getAbstractFileObject(fo);

This will unwrap the decorated file object and you can use the AbstractFileObject as before.

The decorated file object is primary meant to be used outside of VFS, within it should always
be possible to unwrap it when required.


> ClassCastException in AbstractFileObject when using OnCall caching
> ------------------------------------------------------------------
>                 Key: VFS-82
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: Nightly Builds
>         Environment: Windows XP
>            Reporter: Ethan Killian
>         Attachments: AbstractFileObject.patch, AbstractFileObject.patch, LocalFile.patch
> When using OnCall caching in the file system, there is a ClassCastException in the AbstractFileObject
because it assumes that every child it will encounter will also be an AbstractFileObject as
> Here is the stack trace in question:
> Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.apache.commons.vfs.cache.OnCallRefreshFileObject
> 	at org.apache.commons.vfs.provider.AbstractFileObject.delete(
> 	at org.apache.commons.vfs.impl.DecoratedFileObject.delete(
> 	at org.apache.commons.vfs.cache.OnCallRefreshFileObject.delete(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message