--- jsr166/src/test/loops/CachedThreadPoolLoops.java 2015/08/10 03:13:33 1.9 +++ jsr166/src/test/loops/CachedThreadPoolLoops.java 2016/12/31 21:34:47 1.10 @@ -131,8 +131,8 @@ public class CachedThreadPoolLoops { static final class LTQasSQ extends LinkedTransferQueue { LTQasSQ() { super(); } public void put(T x) { - try { super.transfer(x); - } catch (InterruptedException ex) { throw new Error(); } + try { super.transfer(x); } + catch (InterruptedException ex) { throw new Error(ex); } } } @@ -143,10 +143,8 @@ public class CachedThreadPoolLoops { if ((++calls & 1) == 0) super.put(x); else { - try { super.transfer(x); - } catch (InterruptedException ex) { - throw new Error(); - } + try { super.transfer(x); } + catch (InterruptedException ex) { throw new Error(ex); } } } }