On Fri, Feb 27, 2009 at 11:44 AM, David M. Lloyd <david.ll...@redhat.com> wrote: > WeakHashMap<Class<?>, Externalizer>() > > *fails* because Externalizer instances are usually customized to the class > they externalize (which, by the way, could well be a system class). This > means that Externalizer keeps a strong ref to the Class after all.
If the class is from a parent class loader, you should just keep a strong reference to the data and not use ClassLoader.keepReferenceTo(). Bob