# Bug in Java Kernel class ArhcetypeOntology **Category:** [Technical (archive)](https://discourse.openehr.org/c/technical-archive/156) **Created:** 2006-03-21 13:13 UTC **Views:** 3 **Replies:** 3 **URL:** https://discourse.openehr.org/t/bug-in-java-kernel-class-arhcetypeontology/14525 --- ## Post #1 by @babisr The class ArchetypeOntology, does not stores in the internal Map \- definitionsMap, the term defintion items, but only constraint definition items\. The bug is in line 73 where the codeMap = new HashMap<String, DefinitionItem>\(\); should be replaced by codeMap = map\.get\(defs\.getLanguage\(\)\); if \(null == codeMap\) \{   codeMap = new HashMap<String, DefinitionItem>\(\); \} --- ## Post #2 by @rong.chen babisr@yahoo\.com wrote: > The class ArchetypeOntology, does not stores in the > internal Map \- definitionsMap, the term defintion > items, but only constraint definition items\. > > The bug is in line 73 where the > > codeMap = new HashMap<String, DefinitionItem>\(\); > > should be replaced by > > codeMap = map\.get\(defs\.getLanguage\(\)\); > if \(null == codeMap\) \{ >   codeMap = new HashMap<String, DefinitionItem>\(\); > \} > Yes, you are right\! The bug was originally reported by Jonas and Joakim from Linköpings University\. Your fix seems to be more concise than the one submitted by Jonas and Joakim\. Now it has been fixed in the local copy and will soon be committed into subversion repository\. Thanks for reporting this bug\! What's your name by the way? \(so that I could count you as one of the contributors :\) Rong --- ## Post #3 by @rong.chen babisr@yahoo\.com wrote: > The class ArchetypeOntology, does not stores in the > internal Map \- definitionsMap, the term defintion > items, but only constraint definition items\. > > The bug is in line 73 where the > > codeMap = new HashMap<String, DefinitionItem>\(\); > > should be replaced by > > codeMap = map\.get\(defs\.getLanguage\(\)\); > if \(null == codeMap\) \{ >   codeMap = new HashMap<String, DefinitionItem>\(\); > \} > Yes, you are right\! The bug was originally reported by Jonas and Joakim from Linköpings University\. Your fix seems to be more concise than the one submitted by Jonas and Joakim\. Now it has been fixed in the local copy and will soon be committed into subversion repository\. Thanks for reporting this bug\! What's your name by the way? \(so that I could count you as one of the contributors :\) Rong --- ## Post #4 by @babisr Rong, My name is Routis Haralampos\. I did know whether this mailing list was the proper place for reporting issues of the java kernel implementation, but the bug reporting site seems to be abandoned\. Thanks for the reply\. \-\-\- Rong Chen <rong@acode\.se> Ýãñáøå: --- **Canonical:** https://discourse.openehr.org/t/bug-in-java-kernel-class-arhcetypeontology/14525 **Original content:** https://discourse.openehr.org/t/bug-in-java-kernel-class-arhcetypeontology/14525