axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Caslavsky (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3362) wsdl2java for JAXB binding generates uncompilable code
Date Fri, 23 Nov 2007 14:24:43 GMT
wsdl2java for JAXB binding generates uncompilable code
------------------------------------------------------

                 Key: AXIS2-3362
                 URL: https://issues.apache.org/jira/browse/AXIS2-3362
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.3, nightly
         Environment: JDK5, JAXB-RI 2
            Reporter: Martin Caslavsky
         Attachments: test.wsdl

For method with single primitive parameter (int, long,...) wsdl2java for JAXB binding generates
uncompilable code in *MessageReceiverInOut.invokeBusinessLogic(MessageContext, MessageContext):
"Cannot cast from Object to int":

                if ("NewOperation".equals(methodName)) {
                    int newOperationResponse1 = 0;
                    int wrappedParam = (int) fromOM(msgContext.getEnvelope()
                                                              .getBody()
                                                              .getFirstElement(),
                            int.class,
                            getEnvelopeNamespaces(msgContext.getEnvelope()));

(ADB works OK)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message