Hi,

I have added a comment to this issue WICKET-625:

"I think the problem still exists in Injector class, so this issue
should be reopened. There is classToFields field with "FIXME:
WICKET-625..." comment :), which is used to cache fields to inject for
specified class. This map is not cleaned up when hot-deploying.
The patch attached above removes this map (cache), but it has not been
applied and I think it is ok, because removing this cache could
drastically degrade performance.

My proposal is to use a solution described in this article:
http://weblogs.java.net/blog/jhook/archive/2006/12/class_metadata.html
and define classToFields field as a:
WeakHashMap<ClassLoader, ConcurrentHashMap<String, ClassMetaData>>
where a ClassLoader key will be a class loader of injected object's
class. When we will use ClassLoader as the key, then the second map
can store class names instead of Class<?> references."

--
Daniel

Reply via email to