# Little sync problem in Java-code regarding ResourceItem

**URL:** <https://discourse.openehr.org/t/little-sync-problem-in-java-code-regarding-resourceitem/16571>\
**Category:** Technical (archive)\
**Created:** [1 June 2017 07:50 UTC](https://discourse.openehr.org/t/little-sync-problem-in-java-code-regarding-resourceitem/16571 "2017-06-01T07:50:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [1 June 2017 07:50 UTC](https://discourse.openehr.org/t/little-sync-problem-in-java-code-regarding-resourceitem/16571/1 "2017-06-01T07:50:35Z")

</div>

Hi,

A short notification for there is a small but disturbing problem in Java-lib code, which I was studying for some project purpose.

In the code in java-libs is in conflict with the specifications (the specifications are right, also conform the many examples on CKM). It is not a big thing, but can be confusing for someone new in OpenEHR.

I did not find a Jira-project to post it, so I do it here.

Thx  
Bert

The explanation, for if some wants to repair it.

It is about these documents/source files:  
1) [https://github.com/openEHR/java-libs/blob/master/openehr-aom/src/main/java/org/openehr/am/archetype/Archetype.java](https://github.com/openEHR/java-libs/blob/master/openehr-aom/src/main/java/org/openehr/am/archetype/Archetype.java)  
2) [https://github.com/openEHR/java-libs/blob/master/openehr-rm-core/src/main/java/org/openehr/rm/common/resource/ResourceDescription.java](https://github.com/openEHR/java-libs/blob/master/openehr-rm-core/src/main/java/org/openehr/rm/common/resource/ResourceDescription.java)  
3) [https://github.com/openEHR/java-libs/blob/master/openehr-rm-core/src/main/java/org/openehr/rm/common/resource/AuthoredResource.java](https://github.com/openEHR/java-libs/blob/master/openehr-rm-core/src/main/java/org/openehr/rm/common/resource/AuthoredResource.java)

and this:  
4) [http://www.openehr.org/releases/AM/latest/docs/ADL1.4/ADL1.4.html#\_description\_section](http://www.openehr.org/releases/AM/latest/docs/ADL1.4/ADL1.4.html#_description_section)  
5) [http://www.openehr.org/releases/AM/Release-2.0.6/docs/AOM1.4/AOM1.4.html#\_resource\_description\_class](http://www.openehr.org/releases/AM/Release-2.0.6/docs/AOM1.4/AOM1.4.html#_resource_description_class)

In 5 is \*details\* of kind Hash\<String, ResourceDescription\>, which is also in analogy with 4, where there is an example.  
But this conflicts with 1, where there is the code of the Archetype-class which inherits from 3 (where the ResourceDescription is found, which is indeed the ResourceDescription class from 2)

There error also occurs in  
[https://github.com/openEHR/reference-models/blob/master/models/openEHR/Release-1.0.2/XSD/Resource.xsd](https://github.com/openEHR/reference-models/blob/master/models/openEHR/Release-1.0.2/XSD/Resource.xsd)

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [1 June 2017 15:23 UTC](https://discourse.openehr.org/t/little-sync-problem-in-java-code-regarding-resourceitem/16571/2 "2017-06-01T15:23:31Z")

</div>

Report the issues on the GitHub projects.
