Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1
    • Component/s: core/other
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: All

    • Bugzilla Id:
      24084

      Description

      The canonical form of a Java finalizer is:

      protected void finalize() throws Throwable()
      {
      try

      { // ... local code to finalize this class }

      catch (Throwable t)
      {
      }
      super.finalize(); // finalize base class.
      }

      The finalizers in IndexReader, IndexWriter, and FSDirectory don't conform. This
      is probably minor or null in effect, but the principle is important.

      As a matter of fact FSDirectory.finaliz() is entirely redundant and could be
      removed, as it doesn't do anything that RandomAccessFile.finalize would do
      automatically.

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              esmond.pitt@bigpond.com Esmond Pitt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: