--- old/src/java.base/share/classes/java/util/concurrent/SynchronousQueue.java 2018-04-10 11:23:46.919341200 -0700 +++ new/src/java.base/share/classes/java/util/concurrent/SynchronousQueue.java 2018-04-10 11:23:46.703341297 -0700 @@ -293,7 +293,7 @@ SMATCH = l.findVarHandle(SNode.class, "match", SNode.class); SNEXT = l.findVarHandle(SNode.class, "next", SNode.class); } catch (ReflectiveOperationException e) { - throw new Error(e); + throw new ExceptionInInitializerError(e); } } } @@ -516,7 +516,7 @@ MethodHandles.Lookup l = MethodHandles.lookup(); SHEAD = l.findVarHandle(TransferStack.class, "head", SNode.class); } catch (ReflectiveOperationException e) { - throw new Error(e); + throw new ExceptionInInitializerError(e); } } } @@ -583,7 +583,7 @@ QITEM = l.findVarHandle(QNode.class, "item", Object.class); QNEXT = l.findVarHandle(QNode.class, "next", QNode.class); } catch (ReflectiveOperationException e) { - throw new Error(e); + throw new ExceptionInInitializerError(e); } } } @@ -830,7 +830,7 @@ QCLEANME = l.findVarHandle(TransferQueue.class, "cleanMe", QNode.class); } catch (ReflectiveOperationException e) { - throw new Error(e); + throw new ExceptionInInitializerError(e); } } }