-
Notifications
You must be signed in to change notification settings - Fork 183
RAML to Java - Result objects do not compile due missing override of methods #417
Comments
This might have to do with the empty |
Hi!, thanks for the response, I've tried without the |
From the top of my head, there is a problem with with overriding properties relative to Java with Java supports covariant return types, meaning that subclass overrides of a given method can't return subclasses of the return class of the parent method. Java does not support covariant or contravariant parameters (where methods of a subclass can't change the parameters to a subclass of the parent method, or to a more general type). There is a plan, in 4.0 to give an option to remove interfaces (and as a side effect removing multiple inheritance) and allow such constructs. If you remove the config from the top class |
Another discussion around these subjects: |
Hi, I'm using raml-to-jaxrs-maven-plugin version 3.0.7 , and the result objects do not compile , the issue I is when having inheritance of types in the RAML definition.
When having some types like :
I got this error in my generated classes:
HttpImpl.java:[8,8] api.model.HttpImpl is not abstract and does not override abstract method setConfig(api.model.BaseEndpointConfig) in api.model.BaseEndpoint
This is an example of the API I'm trying to use with the plugin :
api.zip
The text was updated successfully, but these errors were encountered: