Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-623

RAMDirectory.close() should have a comment about not releasing any resources

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: core/store
    • Labels:
      None

      Description

      I wrongly assumed that calling RAMDirectory.close() would free up the memory occupied by the RAMDirectory.
      It might be helpful to add a javadoc comment that warns users that RAMDirectory.close() is a no-op, since it might be a common assumption that close() would release resources.

        Attachments

        1. ramdirectory.diff
          0.5 kB
          Nadav Har'El

          Activity

            People

            • Assignee:
              hossman Hoss Man
              Reporter:
              heng.mei@gmail.com Heng Mei
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: