[
https://issues.apache.org/jira/browse/CXF-8284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108803#comment-17108803
]
Andriy Redko commented on CXF-8284:
-----------------------------------
Hi [~xnYi9wRezm] ,
CXF tries to stick with JAX-RS spec regarding these annotations. From the
improvements standpoint, we could implement the parameter name lookup (assuming
respective Java compiler options are provided), but mirroring the annotations
in a library-specific way is not beneficial in long run and hurts ecosystem to
be fair (Swagger/OpenAPI, OpenFeign, ....). Hope it makes sense.
Best Regards,
Andriy Redko
> Parameter annotations with default names
> ----------------------------------------
>
> Key: CXF-8284
> URL: https://issues.apache.org/jira/browse/CXF-8284
> Project: CXF
> Issue Type: Wish
> Components: JAX-RS
> Reporter: xnYi9wRezm
> Priority: Minor
>
> @...Param annotations require in most cases the repetition of the parameter
> name. i.e.
> {{{{@Path("/book/\{isbn}")}}}}
> {{ public String getBook(@PathParam("isbn") String isbn)}}{{{}}
> {{ }}{{...}}
> {{ }}}
> RestEasy implemented new annotations that don't require the parameter name
> when it matches the Java name. It would be useful to have the same in Apache
> CXF.
> *See*
> *
> [https://docs.jboss.org/resteasy/docs/3.8.1.Final/userguide/html/_NewParam.html]
> *
> [https://github.com/resteasy/Resteasy/commit/0e992f2a0f9004822a40e6d2fbf26b3f4c8d1bf0]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)