Incorrect Javadocs for ReflectionUtils.doWithLocalFields [SPR-16658] #21199
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: task
A general task
Milestone
Thai H opened SPR-16658 and commented
Javadocs for org.springframework.util.ReflectionUtils.doWithLocalFields() method is not correct.
"Invoke the given callback on all fields in the target class, going up the class hierarchy to get all declared fields."
The method just processes the fields belong to the provided class, not parent classes.
Reference:
https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/util/ReflectionUtils.java#L690
Affects: 4.3.14, 5.0.4
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: