src/share/classes/java/util/concurrent/ForkJoinTask.java

Print this page

        

@@ -518,11 +518,11 @@
         }
         Throwable ex;
         if (e == null || (ex = e.ex) == null)
             return null;
         if (e.thrower != Thread.currentThread().getId()) {
-            Class ec = ex.getClass();
+            Class<? extends Throwable> ec = ex.getClass();
             try {
                 Constructor<?> noArgCtor = null;
                 Constructor<?>[] cs = ec.getConstructors();// public ctors only
                 for (int i = 0; i < cs.length; ++i) {
                     Constructor<?> c = cs[i];