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

Clarify AtomicBoolean.lazySet() so it's clear how this method compares to set()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • 7
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      Please update the documentation of AtomicXXX.lazySet(). Currently it reads:
      http://download.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicReference.html#lazySet(V)
      "Eventually sets to the given value." which doesn't really explain when it should be used versus set().

      You can find a more detailed explanation of lazySet() here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6275329

      Please simplify the explanation and update the Javadoc so it's clear how this method compares to set(), and when it is appropriate to use it.

      JUSTIFICATION :
      It's unclear when it's appropriate to use the method.

            dl Doug Lea
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: