< prev index next >

test/jdk/java/util/concurrent/tck/AbstractQueuedSynchronizerTest.java

Print this page
8207003: Miscellaneous changes imported from jsr166 CVS 2018-09
Reviewed-by: martin, chegar

@@ -1308,11 +1308,11 @@
         ArrayList<Thread> threads = new ArrayList<>();
         Runnable failedAcquire = () -> {
             try {
                 s.acquireInterruptibly(1);
                 shouldThrow();
-            } catch (InterruptedException expected) {}
+            } catch (InterruptedException success) {}
         };
         for (int i = 0; i < 2; i++) {
             Thread thread = new Thread(failedAcquire);
             thread.start();
             threads.add(thread);
< prev index next >