cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (CXF-1492) JAXB databinding adds classes recursively to JAXBContext. The reference impl. adds only the request and response classes.
Date Wed, 26 Mar 2008 16:11:24 GMT

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

Daniel Kulp reassigned CXF-1492:
--------------------------------

    Assignee: Daniel Kulp

> JAXB databinding adds classes recursively to JAXBContext. The reference impl. adds only
the request and response classes.
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1492
>                 URL: https://issues.apache.org/jira/browse/CXF-1492
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>         Environment: snapshot 20080130
>            Reporter: Gyorgy Orban
>            Assignee: Daniel Kulp
>         Attachments: cxf-1492.patch, JAXBContextInitializer.patch
>
>
> This can cause problems with custom JAXB type adapters. Since CXF walks the classes recursively
in JAXBContextInitializer, it adds the custom type's xml schema to the wsdl. Because these
classes are intended for internal usage only they should not be part of the contract. If,
for example, we have an adapter for xs:date we don't want to see in the wsdl the schema of
the class that xs:date is mapped to internally.
> This is a patch against JAXBContextInitializer that worked for us:
> 53a54
> >
> 149,152d149
> <             if (!Throwable.class.equals(cls)
> <                 && !Exception.class.equals(cls)) {
> <                 walkReferences(cls);
> <             }
> 165d161
> <                 walkReferences(cls);

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