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
I have a class SimpleXPathQueryCriteriaQueryGenerator extends AbstractSimpleCriteriaQueryGenerator<XPathQuery> implements XPathQueryCriteriaQueryGenerator. All four of these classes are loaded by the same URLClassLoader, which should be discarded at some point, all of spring is loaded by the parent ClassLoader, which stays around for a long time.
As far as I can tell, the org.springframework.core.GenericTypeResolver keeps a static WeakHashMap containing the SimpleXPathQueryCriteriaQueryGenerator as the key, and the XPathQuery contained in a map withing the value. The XPathQuery in the value results in a hard reference path back to the key of the WeakHashMap.