--- jsr166/src/test/loops/ProducerConsumerLoops.java 2016/12/31 19:54:17 1.13 +++ jsr166/src/test/loops/ProducerConsumerLoops.java 2016/12/31 21:34:47 1.14 @@ -243,8 +243,8 @@ public class ProducerConsumerLoops { 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); } } } @@ -255,10 +255,8 @@ public class ProducerConsumerLoops { 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); } } } }