Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16658

Incorrect Javadocs for ReflectionUtils.doWithLocalFields

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Complete
    • 4.3.14, 5.0.4
    • 4.3.15, 5.0.5
    • Core
    • None
    • true

    Description

      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

      Attachments

        Activity

          People

            juergen.hoeller Juergen Hoeller
            tha2015 Thai H
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3 years, 38 weeks, 1 day ago