Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
3 tasks done
marcphilipp opened this issue Oct 9, 2024 · 0 comments
Closed
3 tasks done

Comments

@marcphilipp
Copy link
Member

marcphilipp commented Oct 9, 2024

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant