Description
Juergen Hoeller opened SPR-14422 and commented
During an upgrade attempt to HttpAsyncClient 4.1.2, it turns out that - under certain constellations - we get build warnings for AbstractHttpClient
's use of @GuardedBy
. Not diving too deep there, the root of our problem is that we're still compiling against the long-deprecated AbstractHttpClient
class for legacy checks in HttpComponentsClientHttpRequestFactory
and HttpComponentsHttpInvokerRequestExecutor
. Since that class may go away at any time in a future HttpClient release, let's reflectively access it instead and therefore get rid of the build warnings as well as not insisting on its presence at runtime anymore. We're just using it for a legacy property check anyway which we'll remove in 5.0 for good.
Affects: 4.3 GA
Issue Links:
- RestTemplate's connection/read timeout settings not applied when using Apache HttpClient [SPR-11442] #16068 RestTemplate's connection/read timeout settings not applied when using Apache HttpClient
- HttpComponentsAsyncClientHttpRequestFactory overrides default request config of httpclient [SPR-13125] #17716 HttpComponentsAsyncClientHttpRequestFactory overrides default request config of httpclient