Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1586

Prevent resource leaks in BrownCluster and WordClusterDictionary

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.3
    • 2.4.0
    • Machine Learning
    • None

    Description

      With the current implementation of BrownCluster and WordClusterDictionary, a resource leak can occur as instances of Reader / Writer and the underlying Input-/OutputStream objects are not closed properly after use.

      Aims:

      • Ensure that try-with-resources fixes the risk of resource leaks.

      Attachments

        Activity

          People

            mawiesne Martin Wiesner
            mawiesne Martin Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: