axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Christ (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1022) WSDL2Java code generation should always use FQCN
Date Mon, 14 Aug 2006 11:44:16 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1022?page=all ]

Fabian Christ updated AXIS2-1022:
---------------------------------

    Attachment: ADBBeanTemplate.xsl.patch

This patch replaces all appearances of Object by java.lang.Object where it wasn´t the case.

> WSDL2Java code generation should always use FQCN
> ------------------------------------------------
>
>                 Key: AXIS2-1022
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1022
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Fabian Christ
>         Attachments: ADBBeanTemplate.xsl.patch
>
>
> Hi,
> when you have an XSD used in a WSDL file like this one [1] you get into trouble. The
XSD defines an element called "Object" and the code generation creates a class called Object.java.
Now you have pieces of code where java.lang.Object was meant but simply Object was written.
In my case the compiler took the wrong Object class and ends in an error. This is also the
case when you define an element like "Exception". 
> You can say that someone shouldn´t reuse names of basic Java classes but Java is not
the world  and the XSD in [1] comes from W3C.
> My suggestion is to use fully qualified class names all over the generated code.
> [1] http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd
> - Fabian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
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