Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4278866

Need a cache that uses SoftReference: Need Reference.set() to update a cache

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      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)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mr Mark Reinhold
              Reporter:
              kryansunw Kevin Ryan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: