# Java Parser: Problem with using Translation_details' Accreditation in ADL **Category:** [Reference Implementation: Java (archive)](https://discourse.openehr.org/c/reference-implementation-java-archive/154) **Created:** 2008-11-13 12:58 UTC **Views:** 4 **Replies:** 1 **URL:** https://discourse.openehr.org/t/java-parser-problem-with-using-translation-details-accreditation-in-adl/13907 --- ## Post #1 by @system Dear all, the current java parser doesn't seem to allow changes to order of the TRANSLATION\_DETAILS \(other than the order of language and author\)\. For example the following would fail: translations = <         \["de"\] = <             author = <                 \["organisation"\] = <"my organisation">                 \["name"\] = <"my name">             >             accreditation = <"my personal accreditation">             language = <\[ISO\_639\-1::de\]>         > would fail, while the following would work translations = <         \["de"\] = <             author = <                 \["organisation"\] = <"my organisation">                 \["name"\] = <"my name">             >             language = <\[ISO\_639\-1::de\]>             accreditation = <"my personal accreditation">         > I believe that changing the following in the adl\.jj will fix this \(ll\. 733\) \- moved the "\)\*" further down to include not only authoor and language, but also accreditation and otherDetails\): \(     <SYM\_L\_BRACKET> langAsKey = string\_value\(\) <SYM\_R\_BRACKET> <SYM\_EQ> <SYM\_LT>             \(         <SYM\_LANG\_LANGUAGE> <SYM\_EQ> "<" language = code\_phrase\(\) ">"       >         <SYM\_AUTHOR> <SYM\_EQ> <SYM\_LT>           author = string\_string\_map\(\)         <SYM\_GT>       \[           <SYM\_ACCREDITATION> <SYM\_EQ> <SYM\_LT>             accreditation = string\_value\(\)           <SYM\_GT>       \]             \[         <SYM\_LANG\_OTHER\_DETAILS> <SYM\_EQ> <SYM\_LT>           otherDetails = string\_string\_map\(\)         <SYM\_GT>       \]       \)\*     <SYM\_GT>     \{       // TODO null terminology service       td = new TranslationDetails\(language, author, accreditation,               otherDetails, terminologyService\);       map\.put\(langAsKey, td\);     \}   \)\+ Rong and others, do you agree? Cheers Sebastian --- ## Post #2 by @system Sebastian, I think the fix should work\. Please go ahead and commit the change\. It will be great if you can attach a testcase too\. Cheers, Rong --- **Canonical:** https://discourse.openehr.org/t/java-parser-problem-with-using-translation-details-accreditation-in-adl/13907 **Original content:** https://discourse.openehr.org/t/java-parser-problem-with-using-translation-details-accreditation-in-adl/13907