You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the sample to reproduce the bug. The "localName" override is failed in some of thread, printing original class name "TestModel" instead of "model". XmlMapper seems not thread safe.
Ok. Yes, interesting. Bug comes from a combination of factors, and was introduced in 2.5, most likely.
Basically, a subset of AnnotatedClass instances (ones for which only class annotations are checked, like for use with root name discovery) may be cached (start with 2.5.0). Further, class annotation lookup is actually done lazily. And finally, since (earlier) assumption was that access to AnnotatedClass is not multi-threaded, this becomes problematic.
I'll try to get this fixed; 2.6 probably needs bit different fix than what may be done for 2.7, but both should be addressable.
This is the sample to reproduce the bug. The "localName" override is failed in some of thread, printing original class name "TestModel" instead of "model". XmlMapper seems not thread safe.
Output:
The text was updated successfully, but these errors were encountered: