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

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9
    • None
    • core/store
    • 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

            hossman Chris M. Hostetter
            heng.mei@gmail.com Heng Mei
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: