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

java.lang.ref: References should be mutable

    XMLWordPrintable

    Details

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

      Description



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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: