axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <>
Subject [jira] Resolved: (AXIS2-1063) Code generated by wsdl2java won't compile
Date Wed, 23 Aug 2006 08:30:14 GMT
     [ ]

Deepal Jayasinghe resolved AXIS2-1063.

    Resolution: Fixed

fixed and commit the code

> Code generated by wsdl2java won't compile
> -----------------------------------------
>                 Key: AXIS2-1063
>                 URL:
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>            Reporter: Chad Boyd
>         Attachments:
> When trying to compile the code generated by the WSDL located at <a href=""></a>
I get errors.  The reason for the compile errors is the wsdl2java generates a "String" class.
 Some of the methods use the "java.lang.String" class as a return type, but it's not prefixed
with the package name.  Since the generated String class is in the same package, the compiler
thinks that it is referring to it.  But the "java.lang.String is really needed.  Here is a
snippet of code that is causing problems:
>          /**
>           * Create a prefix
>           */
>           private String createPrefix() {
>                 return "ns" + (int)Math.random();
>           }
> I've attached the entire generated source for this class.  The "java.lang" prefix is
used in some of the code, so I think somone just forgot to include this in the templates maybe?
 If you run the wsdl2java tool and try to tcompile the code you will see what I'm talking

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message