Name: krT82822 Date: 10/06/99
Programs need to hold hashsets of objects in memory. There's currently no way to do this without the threat of absorbing all available memory. SoftReference is unusable for this purpose without the set(Object) method.
I submitted this a short while ago and got a very ignorant response. It was to create a new SoftReference object. That's completely idiotic. Because that means the cache is basically unusable to every object that used it before it was recreated.
Anyone who has worked with references would know this is a vital feature to add, and not having it is a significant drawback to the References API and Java as a whole.
Thanks for all your help.
(Review ID: 96079)
======================================================================
- duplicates
-
JDK-4187709 java.lang.ref: References should be mutable
-
- Closed
-