Skip to content

Conversation

@sbrannen
Copy link
Member

PR gh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality was effectively unused.

PR spring-projectsgh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality was effectively unused.
@sbrannen sbrannen requested review from jhoeller and philwebb July 25, 2020 14:24
@sbrannen sbrannen self-assigned this Jul 25, 2020
@sbrannen sbrannen added this to the 5.2.9 milestone Jul 25, 2020
@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task labels Jul 25, 2020
@sbrannen
Copy link
Member Author

@philwebb and @jhoeller, I've requested your review of this PR.

I assume there was originally an intent to utilize the class filtering functionality in AnnotationScanner, but since this functionality is currently not used, I figured we should simply remove it altogether.

Thus, if you don't foresee any need to keep this functionality in place, I'll merge this PR for 5.2.x and master.

@sbrannen sbrannen removed request for jhoeller and philwebb July 27, 2020 14:32
@sbrannen sbrannen closed this in 2b3fdfa Jul 28, 2020
@sbrannen sbrannen deleted the AnnotationScanner-class-filtering branch July 28, 2020 08:02
FelixFly pushed a commit to FelixFly/spring-framework that referenced this pull request Aug 16, 2020
PR spring-projectsgh-25429 brought it to our attention that there was a bug in
AnnotationScanner when using a non-null class filter that filtered out
classes; however, it turns out that there is no production code that
utilizes the package-private class filtering support.

This commit therefore removes all class filtering support from
AnnotationScanner since that functionality is effectively unused.

Closes spring-projectsgh-25477
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant