--- jsr166/src/test/tck/ForkJoinTask8Test.java 2013/07/21 22:24:18 1.1 +++ jsr166/src/test/tck/ForkJoinTask8Test.java 2013/07/22 15:55:43 1.2 @@ -32,7 +32,6 @@ public class ForkJoinTask8Test extends J static final short INITIAL_STATE = -1; static final short COMPLETE_STATE = 0; static final short EXCEPTION_STATE = 1; - public static void main(String[] args) { junit.textui.TestRunner.run(suite()); @@ -206,8 +205,8 @@ public class ForkJoinTask8Test extends J } protected void onComplete(BinaryAsyncAction x, BinaryAsyncAction y) { - if (this.getForkJoinTaskTag() != COMPLETE_STATE || - x.getForkJoinTaskTag() != COMPLETE_STATE || + if (this.getForkJoinTaskTag() != COMPLETE_STATE || + x.getForkJoinTaskTag() != COMPLETE_STATE || y.getForkJoinTaskTag() != COMPLETE_STATE) { completeThisExceptionally(new FJException()); } @@ -241,7 +240,7 @@ public class ForkJoinTask8Test extends J a.sibling = null; a.parent = null; a.completeThis(); - if (p == null || + if (p == null || p.compareAndSetForkJoinTaskTag(INITIAL_STATE, COMPLETE_STATE)) break; try { @@ -304,7 +303,7 @@ public class ForkJoinTask8Test extends J } f.complete(); } - catch(Throwable ex) { + catch (Throwable ex) { compareAndSetForkJoinTaskTag(INITIAL_STATE, EXCEPTION_STATE); } return false; @@ -1395,7 +1394,6 @@ public class ForkJoinTask8Test extends J testInvokeOnPool(singletonPool(), a); } - /** * ForkJoinTask.quietlyComplete returns when task completes * normally without setting a value. The most recent value