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

Comparing jsr166/src/test/loops/TimeoutProducerConsumerLoops.java (file contents):
Revision 1.14 by jsr166, Sat Dec 31 19:25:33 2016 UTC vs.
Revision 1.15 by jsr166, Sat Dec 31 21:34:47 2016 UTC

# Line 224 | Line 224 | public class TimeoutProducerConsumerLoop
224      static final class LTQasSQ<T> extends LinkedTransferQueue<T> {
225          LTQasSQ() { super(); }
226          public void put(T x) {
227 <            try { super.transfer(x);
228 <            } catch (InterruptedException ex) { throw new Error(); }
227 >            try { super.transfer(x); }
228 >            catch (InterruptedException ex) { throw new Error(ex); }
229          }
230  
231          public boolean offer(T x, long timeout, TimeUnit unit) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines