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

Incorrect Javadocs for ReflectionUtils.doWithLocalFields

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    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
            Archiver:
            tmarshall Trevor Marshall
            Spring Issues Spring Issues

            Dates

              Created:
              Updated:
              Resolved:
              Archived:
              4 years, 21 weeks, 1 day ago