Skip to content

The @TypeExcludeFilters annotation is not @Inherited #22939

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

Closed
jhyot opened this issue Aug 13, 2020 · 0 comments
Closed

The @TypeExcludeFilters annotation is not @Inherited #22939

jhyot opened this issue Aug 13, 2020 · 0 comments
Labels
type: bug A general bug
Milestone

Comments

@jhyot
Copy link

jhyot commented Aug 13, 2020

@TypeExcludeFilters isn't declared as @Inherited, so I can't use the annotation on test superclasses.

There is a workaround currently to create a custom meta-annotation marked @Inherited and add @TypeExcludeFilters there, but I actually wouldn't see any harm to add Inherited directly. Most annotations in Spring and elsewhere are Inherited, so it actually took me by surprise and I spent 30-60 min wondering what was not working in my setup.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 13, 2020
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 14, 2020
@philwebb philwebb changed the title Add @Inherited to @TypeExcludeFilters The @TypeExcludeFilters annotation is not @Inherited Aug 14, 2020
@philwebb philwebb modified the milestones: 2.1.x, 2.2.x Aug 14, 2020
@philwebb philwebb modified the milestones: 2.2.x, 2.2.10 Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants