coheigea opened a new pull request, #3781: URL: https://github.com/apache/cxf/pull/3781
getCachedContextAndSchemas() stores an entry under "" when defaultNs is null, but the exact-match lookup only read the cache when defaultNs was non-null. Exact lookups without a default namespace therefore always missed, and a new JAXBContext was created on every call. This affects getCachedContextAndSchemas(String, Map, ClassLoader) and JAXBDataBinding when the default namespace is null (for example when an ObjectFactory declares elements in the empty namespace). Look up the same key that is used when storing, and add a regression test. -- 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]
