-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ForgivingExceptionHandler swallows Errors #710
Comments
It would be a significant breaking change. You can always use any |
Sorry, but I honestly cannot imagine situation when anyone would rely on |
Consider similar discussion on spring-amqp spring-projects/spring-amqp#1258 |
We could add a We can Or we can do the |
Actually, we did the former; a second commit for that issue changed it to a no-op in 2.2.x
and exit the jvm in the next release 2.3.0 |
OK, thanks @garyrussell. So you chose to introduce the breaking change between 2.2 and 2.3. Is this something you usually do between minor versions? |
Yes, if the problem is serious enough. At this stage of the project's maturity, major versions are far apart. |
OK, thanks for the feedback @garyrussell. WDYT @michaelklishin? |
@acogoluegnes we can do the same thing and even bump major version. I wouldn't mind that. |
I've done some search around the repo and discovered a few more suspicious
rabbitmq-java-client/src/main/java/com/rabbitmq/tools/jsonrpc/JsonRpcServer.java Line 182 in e32bcbb
Would it be more appropriate to file them separately and link all together? |
Several methods defined in
ExceptionHandler
interface acceptThrowable
as one of arguments.ForgivingExceptionHandler
andDefaultExceptionHandler
(which is used as a defaultExceptionHandler
implementation) as one of it's descendants effectively ignore any encounteredError
s leaving application in abnormal state, which is strongly discouraged according toError
's description.Maybe it would be more correct to re-throw catched
Error
s afterExceptionHandler
tried to log them or catch clauses should not even rely onExceptionHandler
to re-throwError
s.The text was updated successfully, but these errors were encountered: