Hi

Thanks for reporting this issue, I'll take care of it in time for the next release.

FYI, it is also possible to prepare a WADL document at the build time and there one can depend on the actual on the more robust JavaDoc API to get the doc collected:

http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-java2wadlMavenplugin

This document can then be referenced from a jaxrs:server element.

Thanks, Sergey



On 08/06/15 10:32, Anastasiia Iurshina wrote:
Hello,

We're currently using CXF 3.0.4 and it seems there is a bug in generating WADL 
when JDK 8 is used: method javadocs are not being added to WADL.
It happens because Javadoc format has been changed in Java 8. Now in Javadoc HTML files methods look 
like < a name="getCountries--"> instead of < a name="getCountries( in the older 
versions.

JavaDocProvider expects the older format:  String operMarker = operLink + 
method.getName() + "("; so it's not able to find operation marker.



There is also a minor problem with namespaces. If all request/response types in 
endpoints are collections the namespace is not being added to the <application 
tag, which result in the invalid WADL.

Classes of the objects that are elements of the collections are not added to the Map<Class<?>, 
QName> clsMap = new IdentityHashMap<Class<?>, QName>(); in WadlGenerator.

(and it seems right) so the namespace is missed. Maybe it's the expected 
behavior but it seems a bit inconsistent since collections are supported as 
request/response types.


Thanks,
Anastasiia



Reply via email to