Skip to content

The @TypeExcludeFilters annotation is not @Inherited #22939

@jhyot

Description

@jhyot

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions