Skip to content
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

Properly recover exceptions when they are constructed from 'Throwable… #3731

Merged
merged 4 commits into from
May 3, 2023

Conversation

qwwdfsad
Copy link
Collaborator

@qwwdfsad qwwdfsad commented May 1, 2023

…(cause)' constructor.

And restore the original behaviour. After #1631 this constructor's recovery mechanism was broken because 'Throwable(cause)' changes the message to be equal to 'cause.toString()' which isn't equal to the original message.

Also, make reflective constructor choice independable from source-code order

Fixes #3714

…(cause)' constructor.

And restore the original behaviour. After #1631 this constructor's recovery mechanism was broken because 'Throwable(cause)' changes the message to be equal to 'cause.toString()' which isn't equal to the original message.

Also, make reflective constructor choice independable from source-code order

Fixes #3714
@qwwdfsad qwwdfsad requested a review from dkhalanskyjb May 1, 2023 15:44
@qwwdfsad qwwdfsad requested a review from dkhalanskyjb May 2, 2023 15:11
@qwwdfsad qwwdfsad merged commit 25a3553 into develop May 3, 2023
@qwwdfsad qwwdfsad deleted the fix-cause-ctor-recovery branch May 3, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants