Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Javadocs for ReflectionUtils.doWithLocalFields [SPR-16658] #21199

Closed
spring-projects-issues opened this issue Mar 28, 2018 · 0 comments
Assignees
Labels
in: core status: backported type: task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Mar 28, 2018

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

@spring-projects-issues spring-projects-issues added status: backported in: core type: task labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0.5 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: backported type: task
Projects
None yet
Development

No branches or pull requests

2 participants