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

Future.cancel doc "has" small grammar problem

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      The method description for javax.swing.SwingWorker.cancel(...) says:

         This attempt will fail if the task has already completed, already been
         cancelled, or could not be cancelled for some other reason.

      (Note that the "or" phrase is not parallel. (As written, the phrase expands
      to:
      - "has already completed"
      - "has already been cancelled" or
      - "has could not be cancelled"


      The text should be adjusted to something like:

         This attempt will fail if the task has already completed or already been
         cancelled, or could not be cancelled for some other reason.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      see Description
      ACTUAL -
      see Description

      URL OF FAULTY DOCUMENTATION :
      .../api/javax/swing/SwingWorker.html

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: