public static final class CachingObjectStorage.PathHolder
extends Object
It seems like the JDK is doing some kind of caching or re-use of Path instances, preventing PhantomReferences
from working properly. Wrapping a Path in another object, and then using PhantomReferences with the wrapper.