ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ForkJoinTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ForkJoinTask.java (file contents):
Revision 1.10 by jsr166, Wed Aug 12 04:10:59 2009 UTC vs.
Revision 1.11 by jsr166, Wed Aug 19 18:07:36 2009 UTC

# Line 54 | Line 54 | import java.util.WeakHashMap;
54   * exceptions such as {@code IOExceptions} to be thrown. However,
55   * computations may still encounter unchecked exceptions, that are
56   * rethrown to callers attempting to join them. These exceptions may
57 < * additionally include RejectedExecutionExceptions stemming from
58 < * internal resource exhaustion such as failure to allocate internal
59 < * task queues.
57 > * additionally include {@link RejectedExecutionException} stemming
58 > * from internal resource exhaustion, such as failure to allocate
59 > * internal task queues.
60   *
61   * <p>The primary method for awaiting completion and extracting
62   * results of a task is {@link #join}, but there are several variants:
# Line 509 | Line 509 | public abstract class ForkJoinTask<V> im
509       * Arranges to asynchronously execute this task.  While it is not
510       * necessarily enforced, it is a usage error to fork a task more
511       * than once unless it has completed and been reinitialized.
512 +     * Subsequent modifications to the state of this task or any data
513 +     * it operates on are not necessarily consistently observable by
514 +     * any thread other than the one executing it unless preceded by a
515 +     * call to {@link #join} or related methods, or a call to {@link
516 +     * #isDone} returning {@code true}.
517       *
518       * <p>This method may be invoked only from within {@code
519       * ForkJoinTask} computations (as may be determined using method
# Line 774 | Line 779 | public abstract class ForkJoinTask<V> im
779       * overridable, but overridden versions must invoke {@code super}
780       * implementation to maintain guarantees.
781       *
782 <     * @param ex the exception to throw. If this exception is
783 <     * not a RuntimeException or Error, the actual exception thrown
784 <     * will be a RuntimeException with cause ex.
782 >     * @param ex the exception to throw. If this exception is not a
783 >     * {@code RuntimeException} or {@code Error}, the actual exception
784 >     * thrown will be a {@code RuntimeException} with cause {@code ex}.
785       */
786      public void completeExceptionally(Throwable ex) {
787          setDoneExceptionally((ex instanceof RuntimeException) ||

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines