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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: