You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "xnYi9wRezm (Jira)" <ji...@apache.org> on 2020/05/15 13:02:00 UTC
[jira] [Updated] (CXF-8284) Parameter annotations with default
names
[ https://issues.apache.org/jira/browse/CXF-8284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xnYi9wRezm updated CXF-8284:
----------------------------
Description:
@...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]
was:
@...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]
> 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)