Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-82

ClassCastException in AbstractFileObject when using OnCall caching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • Windows XP

    Description

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

      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(AbstractFileObject.java:748)
      at org.apache.commons.vfs.impl.DecoratedFileObject.delete(DecoratedFileObject.java:79)
      at org.apache.commons.vfs.cache.OnCallRefreshFileObject.delete(OnCallRefreshFileObject.java:74)

      Attachments

        1. AbstractFileObject.patch
          1 kB
          Ethan Killian
        2. AbstractFileObject.patch
          2 kB
          Ethan Killian
        3. LocalFile.patch
          1 kB
          Ethan Killian
        4. AbstractFileObject.patch
          0.9 kB
          Ethan Killian
        5. LocalFile.patch
          0.7 kB
          Ethan Killian

        Activity

          People

            Unassigned Unassigned
            ekillian Ethan Killian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: