Skip to content

AnnotationSessionFactoryBean packagesToScan does not scan for annotations in package's package-info.java file [SPR-7748] #12404

Closed
@spring-projects-issues

Description

@spring-projects-issues

Gabriele Del Prete opened SPR-7748 and commented

If I use the packagesToScan property of AnnotationSessionFactoryBean, classes are scanned for annotations, but the package itself is not scanned (i.e. package-info.java file is not considered).

I guess it would be better to include the package-info.java file too as the "packagesToScan" name really makes one think that it will scan the packages as a whole.

Note also the contrast with the "annotatedPackages" and "annotatedClasses" name, where it's clear that one will only scan the package annotations and the other only the package classes annotation.


Affects: 3.0.4

Issue Links:

Referenced from: commits 5334ac5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions