• Andy Wilkinson's avatar
    Only attempt unwrapping of interfaces · 988526be
    Andy Wilkinson authored
    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
    988526be
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...