Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only attempt unwrapping of interfaces
Wrapper's isWrapperFor and unwrap methods both take a Class<?> target but document that the target should be an interface. Prior to this change, we were calling isWrapperFor with any Class<?> irrespective of whether or not it was an interface. When using Oracle UCP each call to isWrapperFor with an interface results in an exception stack trace being logged. This commit upates DataSourceUnwrapper to adhere to Wrapper's contract by only calling isWrapperFor and unwrap with interfaces. Fixes gh-24154
- Loading branch information
1 parent
46c9a4f
commit 988526b
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters