--- jsr166/src/test/tck/ForkJoinPool8Test.java 2013/03/22 19:02:27 1.6 +++ jsr166/src/test/tck/ForkJoinPool8Test.java 2013/04/16 05:49:18 1.7 @@ -980,7 +980,7 @@ public class ForkJoinPool8Test extends J * completed tasks; getRawResult returns null. */ public void testInvokeCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertNull(f.invoke()); @@ -996,7 +996,7 @@ public class ForkJoinPool8Test extends J * completed tasks */ public void testQuietlyInvokeCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); f.quietlyInvoke(); @@ -1010,7 +1010,7 @@ public class ForkJoinPool8Test extends J * join of a forked task returns when task completes */ public void testForkJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertSame(f, f.fork()); @@ -1025,7 +1025,7 @@ public class ForkJoinPool8Test extends J * get of a forked task returns when task completes */ public void testForkGetCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { CCF f = new LCCF(null, 8); assertSame(f, f.fork()); @@ -1040,7 +1040,7 @@ public class ForkJoinPool8Test extends J * timed get of a forked task returns when task completes */ public void testForkTimedGetCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { CCF f = new LCCF(null, 8); assertSame(f, f.fork()); @@ -1055,7 +1055,7 @@ public class ForkJoinPool8Test extends J * timed get with null time unit throws NPE */ public void testForkTimedGetNPECC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { CCF f = new LCCF(null, 8); assertSame(f, f.fork()); @@ -1071,7 +1071,7 @@ public class ForkJoinPool8Test extends J * quietlyJoin of a forked task returns when task completes */ public void testForkQuietlyJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertSame(f, f.fork()); @@ -1086,7 +1086,7 @@ public class ForkJoinPool8Test extends J * invoke task throws exception when task completes abnormally */ public void testAbnormalInvokeCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF f = new LFCCF(null, 8); try { @@ -1103,7 +1103,7 @@ public class ForkJoinPool8Test extends J * quietlyInvoke task returns when task completes abnormally */ public void testAbnormalQuietlyInvokeCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF f = new LFCCF(null, 8); f.quietlyInvoke(); @@ -1117,7 +1117,7 @@ public class ForkJoinPool8Test extends J * join of a forked task throws exception when task completes abnormally */ public void testAbnormalForkJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF f = new LFCCF(null, 8); assertSame(f, f.fork()); @@ -1135,7 +1135,7 @@ public class ForkJoinPool8Test extends J * get of a forked task throws exception when task completes abnormally */ public void testAbnormalForkGetCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { FailingCCF f = new LFCCF(null, 8); assertSame(f, f.fork()); @@ -1155,7 +1155,7 @@ public class ForkJoinPool8Test extends J * timed get of a forked task throws exception when task completes abnormally */ public void testAbnormalForkTimedGetCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { FailingCCF f = new LFCCF(null, 8); assertSame(f, f.fork()); @@ -1175,7 +1175,7 @@ public class ForkJoinPool8Test extends J * quietlyJoin of a forked task returns when task completes abnormally */ public void testAbnormalForkQuietlyJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF f = new LFCCF(null, 8); assertSame(f, f.fork()); @@ -1190,7 +1190,7 @@ public class ForkJoinPool8Test extends J * invoke task throws exception when task cancelled */ public void testCancelledInvokeCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertTrue(f.cancel(true)); @@ -1208,7 +1208,7 @@ public class ForkJoinPool8Test extends J * join of a forked task throws exception when task cancelled */ public void testCancelledForkJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertTrue(f.cancel(true)); @@ -1227,7 +1227,7 @@ public class ForkJoinPool8Test extends J * get of a forked task throws exception when task cancelled */ public void testCancelledForkGetCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { CCF f = new LCCF(null, 8); assertTrue(f.cancel(true)); @@ -1246,7 +1246,7 @@ public class ForkJoinPool8Test extends J * timed get of a forked task throws exception when task cancelled */ public void testCancelledForkTimedGetCC() throws Exception { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() throws Exception { CCF f = new LCCF(null, 8); assertTrue(f.cancel(true)); @@ -1265,7 +1265,7 @@ public class ForkJoinPool8Test extends J * quietlyJoin of a forked task returns when task cancelled */ public void testCancelledForkQuietlyJoinCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); assertTrue(f.cancel(true)); @@ -1280,7 +1280,7 @@ public class ForkJoinPool8Test extends J * getPool of non-FJ task returns null */ public void testGetPool2CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { assertNull(getPool()); }}; @@ -1291,7 +1291,7 @@ public class ForkJoinPool8Test extends J * inForkJoinPool of non-FJ task returns false */ public void testInForkJoinPool2CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { assertFalse(inForkJoinPool()); }}; @@ -1302,7 +1302,7 @@ public class ForkJoinPool8Test extends J * setRawResult(null) succeeds */ public void testSetRawResultCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { setRawResult(null); assertNull(getRawResult()); @@ -1314,7 +1314,7 @@ public class ForkJoinPool8Test extends J * invoke task throws exception after invoking completeExceptionally */ public void testCompleteExceptionally2CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); f.completeExceptionally(new FJException()); @@ -1332,7 +1332,7 @@ public class ForkJoinPool8Test extends J * invokeAll(t1, t2) invokes all task arguments */ public void testInvokeAll2CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); CCF g = new LCCF(null, 9); @@ -1349,7 +1349,7 @@ public class ForkJoinPool8Test extends J * invokeAll(tasks) with 1 argument invokes task */ public void testInvokeAll1CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); invokeAll(f); @@ -1363,7 +1363,7 @@ public class ForkJoinPool8Test extends J * invokeAll(tasks) with > 2 argument invokes tasks */ public void testInvokeAll3CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); CCF g = new LCCF(null, 9); @@ -1383,7 +1383,7 @@ public class ForkJoinPool8Test extends J * invokeAll(collection) invokes all tasks in the collection */ public void testInvokeAllCollectionCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); CCF g = new LCCF(null, 9); @@ -1407,7 +1407,7 @@ public class ForkJoinPool8Test extends J * invokeAll(tasks) with any null task throws NPE */ public void testInvokeAllNPECC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); CCF g = new LCCF(null, 9); @@ -1424,7 +1424,7 @@ public class ForkJoinPool8Test extends J * invokeAll(t1, t2) throw exception if any task does */ public void testAbnormalInvokeAll2CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); FailingCCF g = new LFCCF(null, 9); @@ -1442,7 +1442,7 @@ public class ForkJoinPool8Test extends J * invokeAll(tasks) with 1 argument throws exception if task does */ public void testAbnormalInvokeAll1CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF g = new LFCCF(null, 9); try { @@ -1459,7 +1459,7 @@ public class ForkJoinPool8Test extends J * invokeAll(tasks) with > 2 argument throws exception if any task does */ public void testAbnormalInvokeAll3CC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { CCF f = new LCCF(null, 8); FailingCCF g = new LFCCF(null, 9); @@ -1478,7 +1478,7 @@ public class ForkJoinPool8Test extends J * invokeAll(collection) throws exception if any task does */ public void testAbnormalInvokeAllCollectionCC() { - ForkJoinTask a = new CheckedFJTask() { + ForkJoinTask a = new CheckedFJTask() { public void realCompute() { FailingCCF f = new LFCCF(null, 8); CCF g = new LCCF(null, 9);