]
Brian Stansberry resolved WFLY-4086.
------------------------------------
Assignee: (was: Jason Greene)
Resolution: Duplicate Issue
If a ManagedExecutorService's Runnable throws an exception, it
should not be eaten (but it's stacktrace should be shown in the console) by default
--------------------------------------------------------------------------------------------------------------------------------------------------
Key: WFLY-4086
URL:
https://issues.jboss.org/browse/WFLY-4086
Project: WildFly
Issue Type: Enhancement
Components: EE
Affects Versions: 8.1.0.Final
Reporter: Geoffrey De Smet
Priority: Major
To reproduce:
{code}
@Resource(name = "DefaultManagedExecutorService")
ManagedExecutorService executor;
public String myRestMethod() {
executor.submit(new SolverCallable());
return "Submitted.";
}
private class SolverCallable implements Runnable {
public void run() {
throw new IllegalStateException("Tweety bird: Please Sylvester,
don't eat me!");
}
}
{code}
Poor tweety bird's plea (nor the stacktrace) doesn't show up in the WildFly
console of a vanilla installation.
This led me to believe I had no error.