ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/JSR166TestCase.java
(Generate patch)

Comparing jsr166/src/test/tck/JSR166TestCase.java (file contents):
Revision 1.107 by jsr166, Sun Apr 21 06:19:58 2013 UTC vs.
Revision 1.113 by dl, Sun Sep 8 23:00:36 2013 UTC

# Line 294 | Line 294 | public class JSR166TestCase extends Test
294          // Java8+ test classes
295          if (atLeastJava8()) {
296              String[] java8TestClassNames = {
297 +                "Atomic8Test",
298                  "CompletableFutureTest",
299                  "ConcurrentHashMap8Test",
300                  "CountedCompleterTest",
301                  "DoubleAccumulatorTest",
302                  "DoubleAdderTest",
303                  "ForkJoinPool8Test",
304 +                "ForkJoinTask8Test",
305                  "LongAccumulatorTest",
306                  "LongAdderTest",
307 +                "SplittableRandomTest",
308                  "StampedLockTest",
309 +                "ThreadLocalRandom8Test",
310              };
311              addNamedTestClasses(suite, java8TestClassNames);
312          }
# Line 310 | Line 314 | public class JSR166TestCase extends Test
314          return suite;
315      }
316  
317 +    // Delays for timing-dependent tests, in milliseconds.
318  
319      public static long SHORT_DELAY_MS;
320      public static long SMALL_DELAY_MS;
321      public static long MEDIUM_DELAY_MS;
322      public static long LONG_DELAY_MS;
323  
319
324      /**
325       * Returns the shortest timed delay. This could
326       * be reimplemented to use for example a Property.
# Line 709 | Line 713 | public class JSR166TestCase extends Test
713      public static final Integer m6  = new Integer(-6);
714      public static final Integer m10 = new Integer(-10);
715  
712
716      /**
717       * Runs Runnable r with a security policy that permits precisely
718       * the specified permissions.  If there is no current security
# Line 1240 | Line 1243 | public class JSR166TestCase extends Test
1243      public abstract class CheckedRecursiveAction extends RecursiveAction {
1244          protected abstract void realCompute() throws Throwable;
1245  
1246 <        public final void compute() {
1246 >        @Override protected final void compute() {
1247              try {
1248                  realCompute();
1249              } catch (Throwable t) {
# Line 1255 | Line 1258 | public class JSR166TestCase extends Test
1258      public abstract class CheckedRecursiveTask<T> extends RecursiveTask<T> {
1259          protected abstract T realCompute() throws Throwable;
1260  
1261 <        public final T compute() {
1261 >        @Override protected final T compute() {
1262              try {
1263                  return realCompute();
1264              } catch (Throwable t) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines