-
Notifications
You must be signed in to change notification settings - Fork 8
Problem with closing RAMDictionary. #3
Copy link
Copy link
Open
Description
Here is my code:
String wordNetFolder = System.getProperty("user.dir") + "/src/main/resources/wordnet/dict/";
File exFile = new File(wordNetFolder + "JWI_Export_.wn");
IRAMDictionary dictionary;
dictionary = new RAMDictionary(dictionaryFolder);
dictionary.setLoadPolicy(ILoadPolicy.IMMEDIATE_LOAD);
try {
dictionary.open();
dictionary.export(new FileOutputStream(exFile));
dictionary.close();
} catch (IOException e1) {
e1.printStackTrace();
}When I do
assert(dictionary.isOpen() == false);
I get java.lang.AssertionError because the dictionary seems to still be open.
Why is this happening?
I am using the 2.4.0 version.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels