[ 
https://issues.apache.org/jira/browse/CXF-6855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15220216#comment-15220216
 ] 

Sergey Beryozkin commented on CXF-6855:
---------------------------------------

Hi Stefaan, 
thanks, sorry I can not spend much time on this issue, but I've updated the 
code a bit:

http://git-wip-us.apache.org/repos/asf/cxf/commit/6e0c7ece
(to 3.1.x/3.0.x as well)

WADLGenerator always prefers the annotated methods (except for when it checks 
ElementClass), i,e the methods annotated with JAX-RS annotations and which is 
where ElementClass is also expected to be set. So the fix should address the 
issue.

Can you please run your tests against the  snapshots ?

thanks

> ElementClass annotation is ignored on JAX-RS service interface when 
> generating the WADL
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-6855
>                 URL: https://issues.apache.org/jira/browse/CXF-6855
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.0.8
>            Reporter: Stefaan Vanderheyden
>         Attachments: ZoomitWadlBugTest.java, ZoomitWadlBugTest.java
>
>
> For the purpose of generating a WADL, contrary to what would be dictated by 
> best practices the "ElementClass" annotation is ignored by CXF when it is 
> placed on the JAX-RS service interface.
> The annotation must be present on the service's implementation in order for 
> the grammar section of the WADL to be generated correctly, and for the 
> response types to be correctly linked to a grammar type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to