esa / CCSDS_MO_StubGenerator

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

Fix the createMultiReturnType #21

Closed CesarCoelho closed 3 years ago

CesarCoelho commented 7 years ago

This method should generate the objects based on their corresponding field names: https://github.com/esa/CCSDS_MO_StubGenerator/blob/master/GEN_JAVA/src/main/java/esa/mo/tools/stubgen/GeneratorLangs.java#L2358

Please also update the Getters and Setters!

At the moment we get something like: public Long getBodyElement0(); public void setBodyElement1(Long __newValue);

SamCooper commented 7 years ago

This is related to https://github.com/SamCooper/JAVA_SPEC_RIDS/issues/3

We could add in extra methods to for the named versions, so we'd have:

getBody0()

and

getMyField()

Would that work?

CesarCoelho commented 7 years ago

Yap, that would be ok. I would suggest to also add the deprecated annotation on the old methods, e.g.: @Deprecated getBody0()

This would allow backward compatibility and flag the implementer to use the named versions.

CesarCoelho commented 3 years ago

Moved here: https://github.com/esa/mo-services-java/issues/6

Closed!