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

ReferenceQueue.poll() description misleading

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • docs
    • beta
    • generic
    • generic



      Name: vi73552 Date: 04/05/99


      The method description of method ReferenceQueue.poll() is
      not clear (or possibly the method name is misleading).

      The documentation says that the method indicates whether a
      reference is available and which one is available.

      Is does not say that the method removes the indicated reference
      from the queue.

      (From the documentation, it sounds like you can poll to see
      what's available without changing the state.)

      The documentation should say that the returned Reference object
      is also removed from the queue.
      (Review ID: 56511)
      ======================================================================

            jhosunw Jamie Ho (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: