eclipse-ee4j / eclipse-ee4j/jersey
org.glassfish.jersey.client.ClientRuntime#invoke should not wrap ThreadDeath in a ProcessingException
Open
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
"org.glassfish.jersey.client.ClientRuntime#invoke" wraps any Throwable thrown in a ProcessingException. However, ThreadDeath is a special Error and should always be thrown (and thus not wrapped).
- https://docs.oracle.com/javase/8/docs/api/java/lang/Thread.html#stop--
I work on a project where there is legacy code which calls Thread#stop on certain threads to force those threads to clean up (which is admittedly a bad idea).
Thanks
Contributor guide
Assessment
This issue has not been assessed yet.