No longer able to override the toString()
in HandlerMethod
from 6.1.3
#32184
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: regression
A bug that is also a regression
Milestone
Affects: 6.1.3
Spring actuator has a WebMvcEndpointHandlerMethod that extends and overrides the
toString()
from HandlerMethod here.After the change made on the issue #32007, (this commit), the
toString()
is no longer used because the HandlerMethod is wrapped into another instance ofHandlerMethod
, In this block of code:And this one:
So, I found the issue because in spring-open-api it is no longer able to generate the correct name of the endpoints from actuator
/health
,/info
,/metrics
, etc.. due to code is calling the wrongtoString()
method.Expected
The field validations implemented in the issue #32007 should not force the override of the
toString()
wrapping its subclasses back intoHandlerMethod
.The text was updated successfully, but these errors were encountered: