The current grammar doesn't seem to support object block without any attributes. It's needed to support instances that have no values, the mere existence of the instance is enough, e.g. PARTY_SELF from the openEHR RM.
An example (from ADL document):
profile = (DESTINATION_PROFILE) <>
As Peter Gummer correctly pointed out this change is unnecessary. The problem occurred in the Java parser is due to an error when translating the reference grammar to javaCC syntax.
[email from Peter]
"For the second issue, I don't think your suggested "[" and "]" are required. The above test archetype contains examples of empty object blocks, and the Eiffel parser accepts them. My reading of the dADL grammar as published is that this is to be expected, thanks to the rule:
This reduces to <>, i.e. an empty object block."
The current grammar already supports this case (double-checked by me in ADL workbench, ADL workbench source grammar, and ADL 1.4 published grammar today). This CR is therefore not needed and is rejected.