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

Comparing jsr166/src/test/tck/ThreadPoolExecutorSubclassTest.java (file contents):
Revision 1.6 by jsr166, Fri Nov 20 06:33:25 2009 UTC vs.
Revision 1.7 by jsr166, Fri Nov 20 16:02:10 2009 UTC

# Line 1178 | Line 1178 | public class ThreadPoolExecutorSubclassT
1178          ExecutorService e = new CustomTPE(2, 2, LONG_DELAY_MS, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(10));
1179          try {
1180              ArrayList<Callable<String>> l = new ArrayList<Callable<String>>();
1181 <            l.add(new CheckedCallable<String>() {
1182 <                      public String realCall() throws InterruptedException {
1183 <                          latch.await();
1181 >            l.add(new Callable<String>() {
1182 >                      public String call() {
1183 >                          try {
1184 >                              latch.await();
1185 >                          } catch (InterruptedException ok) {}
1186                            return TEST_STRING;
1187                        }});
1188              l.add(null);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines