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

java.lang.ref: References should be mutable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: mr33420 Date: 11/05/98


      SoftReferences are good for use in caches.
      I am building an app that replaces (updates)
      the objects contained in the cache.
      It is very similar to the way web browser
      caches work.
      The problem is there is no way to update the
      objects because the field:
          private Object referent;
      in class java.lang.ref.Reference cannot be changed. It
      sort of defeats the purpose of using it for a cache (it's
      recommended use).
      (Review ID: 42113)
      ======================================================================

            mr Mark Reinhold
            mr Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: