commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ethan Killian (JIRA)" <>
Subject [jira] Updated: (VFS-82) ClassCastException in AbstractFileObject when using OnCall caching
Date Tue, 26 Sep 2006 22:10:51 GMT
     [ ]

Ethan Killian updated VFS-82:

    Attachment: AbstractFileObject.patch

Fix for ClassCastException problem.  Since the files that are resolved may not be AbstractFileObject's
cannot just call deleteSelf() which is only an AbstractFileObject method.  Instead check if
it is indeed an AbstractFileObject and call deleteSelf(), otherwise use the FileObject interface
to delete a single file.

> 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
> 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