ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/SynchronousQueue.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/SynchronousQueue.java (file contents):
Revision 1.125 by jsr166, Sat May 6 06:49:46 2017 UTC vs.
Revision 1.126 by jsr166, Sun Mar 11 18:00:06 2018 UTC

# Line 264 | Line 264 | public class SynchronousQueue<E> extends
264                      SMATCH = l.findVarHandle(SNode.class, "match", SNode.class);
265                      SNEXT = l.findVarHandle(SNode.class, "next", SNode.class);
266                  } catch (ReflectiveOperationException e) {
267 <                    throw new Error(e);
267 >                    throw new ExceptionInInitializerError(e);
268                  }
269              }
270          }
# Line 487 | Line 487 | public class SynchronousQueue<E> extends
487                  MethodHandles.Lookup l = MethodHandles.lookup();
488                  SHEAD = l.findVarHandle(TransferStack.class, "head", SNode.class);
489              } catch (ReflectiveOperationException e) {
490 <                throw new Error(e);
490 >                throw new ExceptionInInitializerError(e);
491              }
492          }
493      }
# Line 554 | Line 554 | public class SynchronousQueue<E> extends
554                      QITEM = l.findVarHandle(QNode.class, "item", Object.class);
555                      QNEXT = l.findVarHandle(QNode.class, "next", QNode.class);
556                  } catch (ReflectiveOperationException e) {
557 <                    throw new Error(e);
557 >                    throw new ExceptionInInitializerError(e);
558                  }
559              }
560          }
# Line 801 | Line 801 | public class SynchronousQueue<E> extends
801                  QCLEANME = l.findVarHandle(TransferQueue.class, "cleanMe",
802                                             QNode.class);
803              } catch (ReflectiveOperationException e) {
804 <                throw new Error(e);
804 >                throw new ExceptionInInitializerError(e);
805              }
806          }
807      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines