Skip to content

Extend JDBC catch to include Errors#1385

Merged
tylerbenson merged 2 commits into
masterfrom
tyler/extend-jdbc-catch
Apr 21, 2020
Merged

Extend JDBC catch to include Errors#1385
tylerbenson merged 2 commits into
masterfrom
tyler/extend-jdbc-catch

Conversation

@tylerbenson
Copy link
Copy Markdown
Contributor

This should help resolve a situation where getClientInfo is not implemented and throws an AbstractMethodError.

@tylerbenson tylerbenson requested a review from a team as a code owner April 20, 2020 16:18
@dougqh
Copy link
Copy Markdown
Contributor

dougqh commented Apr 20, 2020

Do we want add a test for this case?

This should help resolve a situation where `getClientInfo` is not implemented and throws an `AbstractMethodError`.
@tylerbenson tylerbenson force-pushed the tyler/extend-jdbc-catch branch from cff791f to a2156fd Compare April 21, 2020 16:27
Copy link
Copy Markdown
Contributor

@devinsba devinsba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me assuming testing this would be too time consuming

@tylerbenson
Copy link
Copy Markdown
Contributor Author

@devinsba I did modify the test to validate the change. (Before the test was just throwing RuntimeException.)

@tylerbenson tylerbenson merged commit cd3cbc9 into master Apr 21, 2020
@tylerbenson tylerbenson deleted the tyler/extend-jdbc-catch branch April 21, 2020 18:51
@github-actions github-actions Bot added this to the 0.50.0 milestone Apr 21, 2020
@dougqh
Copy link
Copy Markdown
Contributor

dougqh commented Apr 23, 2020

Yes, I think a simple test is the right choice for now.
I've done a harness for AbstractMethodError or other class modification testing in the past, so it is doable. However, we'll tackle that if and when this becomes a repeated problem.

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.

3 participants