Dictionary dico = Dictionary.getInstance();
IndexWord index = dico.lookupIndexWord(POS.VERB, "contain");
Synset[] Syno1 = index.getSenses();
for (Synset synset : Syno1) {
PointerUtils.getInstance().getHypernymTree(synset);
}
Error :
Exception in thread "main" java.lang.StackOverflowError
at net.didion.jwnl.util.TypeCheckingList.init(TypeCheckingList.java:45)
at net.didion.jwnl.util.TypeCheckingList.<init>(TypeCheckingList.java:41)
at net.didion.jwnl.data.list.PointerTargetNodeList.<init>(PointerTargetNodeList.java:50)
at net.didion.jwnl.data.list.PointerTargetNodeList.<init>(PointerTargetNodeList.java:39)
at net.didion.jwnl.data.list.PointerTargetNodeList.<init>(PointerTargetNodeList.java:35)
at net.didion.jwnl.data.list.PointerTargetNodeList.<init>(PointerTargetNodeList.java:43)
at net.didion.jwnl.data.PointerUtils.makePointerTargetTreeList(PointerUtils.java:523)
at net.didion.jwnl.data.PointerUtils.makePointerTargetTreeList(PointerUtils.java:534)
at net.didion.jwnl.data.PointerUtils.makePointerTargetTreeList(PointerUtils.java:534) <== this line x 1000 (approximatively)
I fixed this in my fork at http://extjwnl.sourceforge.net/
Aliaksandr