Add support for composed annotations to all annotations #696
Labels
⚙️ component: Pioneer
Issues about Pioneer own things (e.g. utils)
🚦 status: in progress
📖 theme: cleanup
🐞 type: bug
Looking through the source code of the annotations used to register extensions, it looks like none of them (or none that I could find) support composed annotations, that is, reusing the annotation in another annotation.
JUnit's user manual has a few examples of this in the declarative extension registration section. It would allow users who repeatedly use several extensions together to bundle those into a single annotation like this:
To enable that, two things would be needed:
ANNOTATION_TYPE
would need to be added to the@Target
of the annotationsPioneerAnnotationUtils
would need to be able to find them.Currently the PioneerAnnotationUtils class only looks for the specified annotation - It doesn't check to see what meta-annotations an annotation might have. I think that happens (or doesn't happen) right here.
The text was updated successfully, but these errors were encountered: