eclipse-ee4j / eclipse-ee4j/jersey

org.glassfish.jersey.client.ClientRuntime#invoke should not wrap ThreadDeath in a ProcessingException

Open
#3,661 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.