1 |
|
/* |
2 |
|
* Written by Doug Lea with assistance from members of JCP JSR-166 |
3 |
|
* Expert Group and released to the public domain, as explained at |
4 |
< |
* http://creativecommons.org/licenses/publicdomain |
4 |
> |
* http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
package jsr166y; |
8 |
|
|
9 |
|
import java.io.Serializable; |
10 |
|
import java.util.Collection; |
11 |
– |
import java.util.Collections; |
11 |
|
import java.util.List; |
12 |
|
import java.util.RandomAccess; |
14 |
– |
import java.util.Map; |
13 |
|
import java.lang.ref.WeakReference; |
14 |
|
import java.lang.ref.ReferenceQueue; |
15 |
|
import java.util.concurrent.Callable; |
16 |
|
import java.util.concurrent.CancellationException; |
17 |
|
import java.util.concurrent.ExecutionException; |
20 |
– |
import java.util.concurrent.Executor; |
21 |
– |
import java.util.concurrent.ExecutorService; |
18 |
|
import java.util.concurrent.Future; |
19 |
|
import java.util.concurrent.RejectedExecutionException; |
20 |
|
import java.util.concurrent.RunnableFuture; |
487 |
|
if (e == null || (ex = e.ex) == null) |
488 |
|
return null; |
489 |
|
if (e.thrower != Thread.currentThread().getId()) { |
490 |
< |
Class ec = ex.getClass(); |
490 |
> |
Class<? extends Throwable> ec = ex.getClass(); |
491 |
|
try { |
492 |
|
Constructor<?> noArgCtor = null; |
493 |
|
Constructor<?>[] cs = ec.getConstructors();// public ctors only |