jakartaee / concurrency

Eclipse Project for Concurrency Utilities
https://projects.eclipse.org/projects/ee4j.cu
Other
68 stars 38 forks source link

Adjust tests that use qualifiers with an *Definition annotation that is put on a class not scanned by CDI #489

Closed arjantijms closed 2 months ago

arjantijms commented 2 months ago

*Definition annotations with qualifiers are intended to be processed by CDI. Therefor it's crucial they are also visible to CDI, which means they have to appear on a bean that is set to be scanned by CDI.

At the moment "AnnotationFullTests" in the Concurrency TCK has a Servlet that in the archive its in, is not scanned by CDI and has the mentioned *Definition annotation with qualifiers. This class should be set to be scanned by CDI. Either by giving is a bean defining annotation (e.g. @ApplicationScoped) or using a beans.xml that dictates that CDI should scan all classes.

arjantijms commented 2 months ago

See also https://github.com/jakartaee/specifications/pull/733#issuecomment-2092990041

arjantijms commented 2 months ago

CC @aubi @OndroMih