esa / CCSDS_MO_StubGenerator

Generates technology bindings for CCSDS MAL service specifications
Other
4 stars 9 forks source link

List interface for list element type being an abstract extension of MAL::Composite is erroneous #3

Closed S-Gaertner closed 9 years ago

S-Gaertner commented 9 years ago

According to 4.5.9.1.2 MAL Java API the list interface for a list element type that extends MAL::Composite has to extend the CompositeList interface. In particular this should also apply if the list element type is an abstract extension of MAL::Composite.

Currently such interfaces seem to extend ElementList instead of CompositeList.

As an example see org.ccsds.moims.mo.malprototype.iptest.structure.TestPublishList that is generated from the MALPrototype.xml service definition. TestPublish is an abstract type that extends MAL::Composite, yet TestPublishList extends ElementList instead of CompositeList.

SamCooper commented 9 years ago

Fixed in commit ad40c7cab9ff24f92ce75cd5b586ed0448b21841