You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "kombi (JIRA)" <ji...@apache.org> on 2007/07/30 19:13:53 UTC

[jira] Created: (CXF-864) Code generation error with simpleType and union

Code generation error with simpleType and union
-----------------------------------------------

                 Key: CXF-864
                 URL: https://issues.apache.org/jira/browse/CXF-864
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: MacOSX, java 1.5
            Reporter: kombi
         Attachments: service.wsdl

The proper class generation for enumeration is not generated if it exist in a <xs:union>. The element is treated as a "string".

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


[jira] Updated: (CXF-864) Code generation error with simpleType and union

Posted by "kombi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

kombi updated CXF-864:
----------------------

    Attachment: service.wsdl

Adding wsdl to demonstrate.

> Code generation error with simpleType and union
> -----------------------------------------------
>
>                 Key: CXF-864
>                 URL: https://issues.apache.org/jira/browse/CXF-864
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: MacOSX, java 1.5
>            Reporter: kombi
>         Attachments: service.wsdl
>
>
> The proper class generation for enumeration is not generated if it exist in a <xs:union>. The element is treated as a "string".

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


[jira] Resolved: (CXF-864) Code generation error with simpleType and union

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-864.
-----------------------------

       Resolution: Invalid
    Fix Version/s: Invalid


This is actually per JAXB spec.   For JAXB, all unions are just mapped to a String.   Thus the string in the MyManager parameter. 

For anonymous types in the union, they just aren't generated at all.  Normally, they would be generated as an inner class of the outter type, but since there isn't an outer class (it's mapped to String), it cannot generate an inner class thus its not generated at all.

In anycase, this is a JAXB issue and not CXF.

> Code generation error with simpleType and union
> -----------------------------------------------
>
>                 Key: CXF-864
>                 URL: https://issues.apache.org/jira/browse/CXF-864
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: MacOSX, java 1.5
>            Reporter: kombi
>             Fix For: Invalid
>
>         Attachments: service.wsdl
>
>
> The proper class generation for enumeration is not generated if it exist in a <xs:union>. The element is treated as a "string".

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