axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2782) If generic type is specified in a class, the XSD is not generated correctly
Date Thu, 14 May 2009 17:38:45 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709480#action_12709480
] 

Deepal Jayasinghe commented on AXIS2-2782:
------------------------------------------

hi Sukhitha,
Glad to hear that you have already completed something, anyway this is the procedure you should
follow
 - First get a SVN checkout 
 - Then make your changes
 - Create a patch (please do not attach the classes)
 - Then attach the patch

After that I will go though the patch and apply it.


Before attaching patch, please run the build and make sure that works fine. To run the build
use "mvn clean install"

About the access, since you are not a committer I can not assign the issue to you.

Thank you!
Deepal

> If generic type is specified in a class, the XSD is not generated correctly
> ---------------------------------------------------------------------------
>
>                 Key: AXIS2-2782
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2782
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>         Environment: Axis 1.2 under Tomcat on XP
>            Reporter: Drew Bentley
>            Assignee: Deepal Jayasinghe
>
> Given the following classes:
> public class GenericObject<T>
> {
>     private T _value;
>     public T getValue()
>     {
>         return _value;
>     }
>     public void setValue(T value)
>     {
>         _value = value;
>     }
> }
> public class Test
> {
>     private GenericObject<String> _genValue;
>     
>     public GenericObject<String> getGenValue(){
>         return _genValue;
>     }
>     
>     public void setGenValue(GenericObject<String> value){
>         _genValue = value;
>     }
> }
> The XSD for GenericObject.Value should be a string not xs:anyType
>  <xs:element name="Test" type="ns:Test"/>
>       <xs:complexType name="Test">
>         <xs:sequence>
>           <xs:element name="genValue" nillable="true" type="ns:GenericObject"/>
>         </xs:sequence>
>       </xs:complexType>
>       <xs:element name="GenericObject" type="ns:GenericObject"/>
>       <xs:complexType name="GenericObject">
>         <xs:sequence>
>           <xs:element name="value" nillable="true" type="xs:anyType"/>
>         </xs:sequence>
>       </xs:complexType>

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


Mime
View raw message