You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2009/11/13 04:43:40 UTC
[jira] Resolved: (AXIS2-2782) If generic type is specified in a
class, the XSD is not generated correctly
[ https://issues.apache.org/jira/browse/AXIS2-2782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-2782.
--------------------------------------
Resolution: Fixed
We have made all these changes and I think we have very good generic support now.
> 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
> Attachments: AXIS2_generics_path2.patch, Generics_part1.patch, genericTestcase.patch
>
>
> 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.