[cvs] / jsr166 / src / test / tck / ThreadPoolExecutorSubclassTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.77, Sun Oct 4 03:51:35 2015 UTC revision 1.78, Sun Oct 4 03:52:33 2015 UTC
# Line 1257  Line 1257 
1257          ThreadPoolExecutor p = new CustomTPE(1,1, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(1), h);          ThreadPoolExecutor p = new CustomTPE(1,1, LONG_DELAY_MS, MILLISECONDS, new ArrayBlockingQueue<Runnable>(1), h);
1258    
1259          try { p.shutdown(); } catch (SecurityException ok) { return; }          try { p.shutdown(); } catch (SecurityException ok) { return; }
1260          try {          try (PoolCleaner cleaner = cleaner(p)) {
1261              TrackedNoOpRunnable r = new TrackedNoOpRunnable();              TrackedNoOpRunnable r = new TrackedNoOpRunnable();
1262              p.execute(r);              p.execute(r);
1263              assertFalse(r.done);              assertFalse(r.done);
         } finally {  
             joinPool(p);  
1264          }          }
1265      }      }
1266    

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8