1346 |
|
public final Void getRawResult() { return null; } |
1347 |
|
public final void setRawResult(Void v) { } |
1348 |
|
public final boolean exec() { runnable.run(); return true; } |
1349 |
< |
int trySetException(Throwable ex) { |
1350 |
< |
int s; // if runnable has a handler, invoke it |
1349 |
> |
int trySetException(Throwable ex) { // if a handler, invoke it |
1350 |
> |
int s; Thread t; java.lang.Thread.UncaughtExceptionHandler h; |
1351 |
|
if (isExceptionalStatus(s = trySetThrown(ex)) && |
1352 |
< |
runnable instanceof java.lang.Thread.UncaughtExceptionHandler) { |
1353 |
< |
try { |
1354 |
< |
((java.lang.Thread.UncaughtExceptionHandler)runnable). |
1355 |
< |
uncaughtException(Thread.currentThread(), ex); |
1356 |
< |
} catch (Throwable ignore) { |
1357 |
< |
} |
1358 |
< |
} |
1352 |
> |
(h = ((t = Thread.currentThread()). |
1353 |
> |
getUncaughtExceptionHandler())) != null) { |
1354 |
> |
try { |
1355 |
> |
h.uncaughtException(t, ex); |
1356 |
> |
} catch (Throwable ignore) { |
1357 |
> |
} |
1358 |
> |
} |
1359 |
|
return s; |
1360 |
|
} |
1361 |
|
private static final long serialVersionUID = 5232453952276885070L; |