Skip to content

@ArgumentSource annotations cannot be used as a repeatable annotation on composed annotations #4063

Closed
@marcphilipp

Description

All @ArgumentSource annotations are lacking the ElementType.ANNOTATION_TYPE value from their @Target annotation. Thus, it's currently impossible to use them as repeated annotations when declaring a composed annotation; i.e., the following currently does not compile:

@ValueSource(ints = 1)
@ValueSource(ints = 2)
@interface Example {}

Deliverables

  • Ensure all @ArgumentSource annotations can be used as a repeatable annotation on composed annotations
  • Remove exclusion in ArchUnitTests
  • Backport to 5.11.x branch

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions