Avoid exceptions in ReflectionUtils.isObjectMethod(…) #22730
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Currently,
ReflectionUtils.isObjectMethod(…)
callsObject.class.getDeclaredMethod(…)
, which, for every method that is not an object method, will cause an exception being thrown. I.e. if you call that method heavily with non-Object
methods, you create a lot of exceptions.I suggest to replace that method lookup by a
Map
lookup of allObject
methods by name (with their parameter type arrays as value for subsequent comparison on a hit of the first lookup).The text was updated successfully, but these errors were encountered: