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

RamFileSystem.close() should clear the cache rather than nulling it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • None

    Description

      RamFileSystem.close() should probably clear the cache rather than nulling it.

      This would allow the field to be made final, as well as avoiding an NPE if any methods using the cache are invoked after close.

      Making the field final would ensure it was published correctly - at present the class is not thread-safe

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: