ffang opened a new pull request, #3816: URL: https://github.com/apache/cxf/pull/3816
…ing them The ASM generated NamespaceMapper[RI|Internal] classes always extended org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper, so they were copies of the precompiled org.apache.cxf.common.jaxb.NamespaceMapper. The EclipseLink MOXy mapper is now precompiled too, as org.apache.cxf.common.jaxb.EclipseNamespaceMapper, against an optional org.eclipse.persistence.core dependency (an optional OSGi import), so no namespace mapper class is generated any more. Both implement the new ContextualNamespaceMapper interface, which DataWriterImpl calls directly; reflection is only kept for mappers from a custom ClassLoaderService. This also fixes: - GeneratedNamespaceClassLoader looked up org.apache.cxf.jaxb.NamespaceMapper for a GlassFish marshaller while NamespaceClassGenerator generated NamespaceMapperRI, and found the MOXy mapper only if it had been captured at build time, so the load only setup lost the namespace prefixes - ClassLoaderProxyService logged an NPE at WARNING when no mapper class was available - the precompiled NamespaceMapper named its method setContextualNamespace while DataWriterImpl calls setContextualNamespaceDecls; the old name is kept as a deprecated alias -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
