Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-626

API: Review to ensure IDisposable is being used correctly and disposable pattern implemented correctly

    XMLWordPrintableJSON

Description

    There have been several issues found recently with the disposable pattern not being implemented correctly. I have also been made aware that there is at least one class (Lucene.Net.Store.Lock, if I recall correctly) that is designed to be re-opened after it is closed.

    We need a review to ensure all classes that implement disposable are doing it correctly and have correctly implemented the dispose pattern both for sealed and unsealed types. We also need to have a close look at whether any classes should be reverted back to using Close() instead of Dispose() on account that the class instance was designed to be used again after the Dispose() call.

    Attachments

      Issue Links

        Activity

          People

            Unassigned Unassigned
            nightowl888 Shad Storhaug
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 50h
                50h
                Remaining:
                Remaining Estimate - 50h
                50h
                Logged:
                Time Spent - Not Specified
                Not Specified