You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <tu...@ws.apache.org> on 2007/09/06 22:47:28 UTC

[jira] Created: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

PackageClassInfo being override when Element and ComplexType have same name
---------------------------------------------------------------------------

                 Key: TUSCANY-1673
                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
             Project: Tuscany
          Issue Type: Bug
          Components: Java SDO Tools
    Affects Versions: Java-SDO-Next
            Reporter: Luciano Resende
            Priority: Blocker
             Fix For: Java-SDO-Next


In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fuhwei Lwo updated TUSCANY-1673:
--------------------------------

    Attachment: 1673.patch

It seems WSDL2Java is dependent on the info from the XSD2JavaGenerator that would key on the global elements so it can build TypeMapper to resolve parameter types of the service interfaces during the wsdl2java codegen.

I have tested building wsdl2java project and it seems working now.

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox updated TUSCANY-1673:
------------------------------------

    Attachment:     (was: 1673.patch)

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luciano Resende updated TUSCANY-1673:
-------------------------------------

    Attachment: interopdoc.wsdl

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "Amita Vadhavkar (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amita Vadhavkar updated TUSCANY-1673:
-------------------------------------

    Fix Version/s:     (was: Java-SDO-Next)
                   Java-SDO-1.1

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-1.1
>
>         Attachments: 1673.patch, 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Resolved: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fuhwei Lwo resolved TUSCANY-1673.
---------------------------------

    Resolution: Fixed

Fixed in revision 575317

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox updated TUSCANY-1673:
------------------------------------

    Attachment: 1673.patch

Luciano, your test case exposed some holes in the generated class info API.  I've restructured that to better handle document root classes and referenced classes.  I've added a filter so that referenced classes not belonging to the namespace are filtered out.  The GeneratedPackagesTestCase has been updated (fixed) as well.  Let me know if this works for you, if so, you may commit or one of the SDO folks can perform the commit.  

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "David T. Adcox (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David T. Adcox updated TUSCANY-1673:
------------------------------------

    Attachment: 1673.patch

Previous patch was generated from a revision that did not include the most recent set of changes in XSD2JavaGenerator.  I've updated my snapshot and recreated the patch.

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-1673) PackageClassInfo being override when Element and ComplexType have same name

Posted by "Luciano Resende (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-1673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525818 ] 

Luciano Resende commented on TUSCANY-1673:
------------------------------------------

I'm getting NPE after applying this patch, but I'm afraid I might have done something bad during merge as the patch wasn't based on latest sdo revision. Could you please update it and I could try it again.

> PackageClassInfo being override when Element and ComplexType have same name
> ---------------------------------------------------------------------------
>
>                 Key: TUSCANY-1673
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1673
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-SDO-Next
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SDO-Next
>
>         Attachments: 1673.patch, interopdoc.wsdl
>
>
> In Wsdl2Java, interfaces are getting generated wrong, because isAnonymous information is getting overridden when element and complexType have same name. I'll attach the wsdl in question here.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org