You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2024/07/01 09:47:00 UTC
[jira] [Created] (OPENNLP-1586) Prevent resource leaks in BrownCluster and WordClusterDictionary
Martin Wiesner created OPENNLP-1586:
---------------------------------------
Summary: Prevent resource leaks in BrownCluster and WordClusterDictionary
Key: OPENNLP-1586
URL: https://issues.apache.org/jira/browse/OPENNLP-1586
Project: OpenNLP
Issue Type: Improvement
Components: Machine Learning
Affects Versions: 2.3.3
Reporter: Martin Wiesner
Assignee: Martin Wiesner
Fix For: 2.3.4
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)