Hi all,

On the kernel module,
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator, method
getParameterName, I see this code:

       if (parameterAnnotation.length > 0) {
           Annotation[] tempAnnon = parameterAnnotation[j];
           if (tempAnnon.length > 0) {
               WebParam para = (WebParam) tempAnnon[0];

This casts the annotation to WebParam rather blindly - we had some
other annotations to these parameters (apart from WebParam), and we
ended up with ClassCastException. For the crazy enough people to put
more annotations there, could this be code be a bit more defensive and
ignore non-WebParam annotations? Putting the WebParam annotation first
would probably be a work-around, but that is a bit hacky.

Kind regards,

Dimitris Andreou

Reply via email to