[
https://issues.apache.org/jira/browse/CXF-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610166#comment-13610166
]
Sergey Beryozkin commented on CXF-4909:
---------------------------------------
Sure, I've added the initial code for validating the parameter style.
See also
https://issues.apache.org/jira/browse/CXF-4913,
(to be done at some later time),
The WADL schema won't actually help with catching this specific issue so it
makes sense to support a basic validation mode but also update SourceGenerator
when the basic validation will not catch the invalid WADLs, as in this case
> wadl2java: NPE in SourceGenerator when generating method with "plain" style
> parameter
> -------------------------------------------------------------------------------------
>
> Key: CXF-4909
> URL: https://issues.apache.org/jira/browse/CXF-4909
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.7.3
> Environment: JDK 1.7.0_17
> Reporter: Thomas Greve
> Priority: Minor
>
> When trying to generate client classes with wadl2java command line tool, i
> encounter a NPE in
> org.apache.cxf.tools.wadlto.jaxrs.SourceGenerator.writeAnnotation(SourceGenerator.java:608)
> The "cls" parameter is null, what is not checked for.
> This is due to PARAM_ANNOTATIONS not containing the "plain" style, which is
> valid according to w3c wadl description (2.12.2).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira