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

java.lang.ref.HardReference as Subclass of java.lang.ref.Reference

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.3.0
    • core-libs
    • generic
    • generic



      Name: yyT116575 Date: 02/19/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed-mode)

      It would be nice for some code to treat all references equal.
      In Java, references are not transparent, you need to get()
      the object before you can use it. Because of this, references
      are different from the object they refer to.

      Sometime you would like to treat a normal objects (that are
      subject to normal garbage collection) as 'hard' referenced objects.
      At the moment this is not possible, because (1) you can't
      subclass java.lang.ref.Reference and (2) java.lang.ref.Reference
      is abstract.

      Perhaps a java.lang.ref.HardReference subclass of java.lang.ref.Reference
      would be handy. For this kind of reference, normal garbage collection
      would apply.
      (Review ID: 117234)
      ======================================================================

            mr Mark Reinhold
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: