Repository navigation
Conversation
…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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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: