WeakReference with null referent

Zheka Kozlov orionllmain at gmail.com
Mon Jul 9 18:31:02 UTC 2018


It is possible to create a WeakReference/SoftReference/PhantomReference
with a null value in which case the Reference will never be enqueued. This
is quite obvious (since null cannot be weakly/softly/phantom reachable).
But I think it's worth being mentioned in the JavaDoc. What do you think?


More information about the core-libs-dev mailing list