You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.
[ERROR] Failed to execute goal jp.co.worksap.jax_rs:js-generator-for-jax-rs:1.0.0:generate (default) on project edu-api-demo: InvocationTargetException occurs: The annotated element, public my.package.MyResource my.package.MyResource.getFoo() is not annotated with @path -> [Help 1]
The text was updated successfully, but these errors were encountered:
I think it is NOT supported by JAX_RS specification that adding annotation onto interface. I'll quote the discussion at Jira:
JAX-RS does not support inheritance of annotations applied to interface types. The statement quoted refers to interfaces methods (and should be clarified). Annotations such as @path are intended for resource classes (which by definition must be concrete classes).
So currently we have no plan to support this case. I recommend you to modify your code to follow JAX_RS specification strictly.
It is perfectly valid according to jax-rs spec to have a method in a resource that is not annotated with @path. For example:
This would cause:
[ERROR] Failed to execute goal jp.co.worksap.jax_rs:js-generator-for-jax-rs:1.0.0:generate (default) on project edu-api-demo: InvocationTargetException occurs: The annotated element, public my.package.MyResource my.package.MyResource.getFoo() is not annotated with @path -> [Help 1]
The text was updated successfully, but these errors were encountered: