geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Closed: (XBEAN-73) XsdGenerator generates <xs:any/> incorrectly
Date Wed, 28 Feb 2007 18:12:57 GMT

     [ https://issues.apache.org/jira/browse/XBEAN-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet closed XBEAN-73.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9

Fixed at rev 512884.
Thanks for the patch :-)

> XsdGenerator generates <xs:any/> incorrectly
> --------------------------------------------
>
>                 Key: XBEAN-73
>                 URL: https://issues.apache.org/jira/browse/XBEAN-73
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 2.8
>            Reporter: Kohsuke Kawaguchi
>         Assigned To: Guillaume Nodet
>             Fix For: 2.9
>
>
> On XsdGenerator.java line 102, the code reads:
>         if (complexCount > 0) {
>             out.println("      <xs:sequence>");
>             for (Iterator iterator = element.getAttributes().iterator(); iterator.hasNext();)
{
>                 AttributeMapping attributeMapping = (AttributeMapping) iterator.next();
>                 if (!namespaceMapping.isSimpleType(attributeMapping.getType())) {
>                     generateElementMappingComplexProperty(out, namespaceMapping, attributeMapping);
>                 }
>             }
>             out.println("        <xs:any namespace='##other'/>");     // <---
PROBLEM!
>             out.println("      </xs:sequence>");
>         }
> but it really needs to be:
>             out.println("        <xs:any namespace='##other' minOccurs='0' maxOccurs='unbounded'
/>");

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