This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There seems to be bugs in MDRCache 1) When removing from the cache HasMap the remove method is called with the value parameter instead of key. This results in not removing the items 2) The get method adds the key into the hardLinks cache even if the key is already included in the cache. 20 gets of the same key result in 20 identical entries in the cache, which is probably not desired 3) I think the base class for the CacheReference should be rather WeaikReference than SoftReference to be more memory friendly
Created attachment 4491 [details] Patch to fix the bug
Cool! How did you spot it? Currently I am refactoring the MDR API a bit (according to the discussion with Yarda on openide-dev) so I am not able to validate the patch. I will apply it after I will validate and commit the changes of the APIs.
attached patch applied
quiet for too long, marking as verified