src/java.base/share/classes/java/util/concurrent/CompletableFuture.java
changeset 49565 b5705ade8c8d
parent 47306 90b7465b9ac7
child 51950 a1c24d06e2b5
--- a/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Tue Apr 10 11:33:29 2018 -0700
+++ b/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Tue Apr 10 11:37:18 2018 -0700
@@ -2883,7 +2883,7 @@
             STACK = l.findVarHandle(CompletableFuture.class, "stack", Completion.class);
             NEXT = l.findVarHandle(Completion.class, "next", Completion.class);
         } catch (ReflectiveOperationException e) {
-            throw new Error(e);
+            throw new ExceptionInInitializerError(e);
         }
 
         // Reduce the risk of rare disastrous classloading in first call to