This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Regression in (Simple)ClientHttpRequestFactory concerning Nativehints #1636
Labels
type: regression
A bug that is also a regression
Milestone
Description
The Regression concerning Nativehints + (Simple)ClientHttpRequestFactory
that was fixed multiple times, is again existent in 0.12.
See #1370
Setting a ConnectionTimeout e.g. via RestTemplateBuilder:
new RestTemplateBuilder().setConnectTimeout(Duration.ofMillis(timeout))
Symptom
Crashes during Bootstrap:
java.lang.IllegalStateException: Request factory class org.springframework.http.client.SimpleClientHttpRequestFactory does not have a suitable setConnectTimeout method
Mitigation
As always we can mitigate this, by setting a manual Typehint:
@typehint(types = org.springframework.http.client.SimpleClientHttpRequestFactory.class, access = {TypeAccess.DECLARED_CONSTRUCTORS, TypeAccess.PUBLIC_METHODS})
But it would be nice if this thing get's fixed once and for all.
Really odd that is .. because #1370 seems to contain a merge request that sets the hints.
The text was updated successfully, but these errors were encountered: