A ‘reference’ to an old bug
Probably the fact that so few experienced Java developers know about the existence of weak references has to do with the bewildering explanations given in the Javadocs for the WeakHashMap and the java.lang.ref package.
If you agree, I urge you to vote for bug 4478625, which was submitted in 2001-JUL-11, but is still marked as ‘in progress’:
Bug 4478625: Better explanation of WeakReference, SoftReference, WeakHashMap
0 Comments