Re: ClassValue rooting objects after it goes away?

2018-03-28 Thread Attila Szegedi
I had some similar concerns with some data structures I maintain in Dynalink; I specifically have a utility method to check if classes from two class loaders are allowed to keep strong references to each other (jdk.dynalink.internal.InternalTypeUtilities.canReferenceDirectly if you want to

Re: ClassValue rooting objects after it goes away?

2018-03-28 Thread Peter Levart
Hi Charles, On 03/02/2018 09:22 PM, Charles Oliver Nutter wrote: Put it another way: does a static reference from a class to itself prevent that class from being garbage collected? Of course not. ClassValue is intended to be a way to inject pseudo-static data into either a class or a Class.