-
Bug
-
Resolution: Unresolved
-
Major
-
7.0.0.Alpha1, 6.0.3.Final, 5.1.6.Final
-
None
The ReflectionDiscoveryStrategy, with annotated discovery mode, wrongly discovers classes that only have inherited bean defining annotations as beans.
According to the specification, the class has to declare the BDA to be considered having one; inheritance alone is not enough.
Note that the Jandex discovery strategy is unaffected (except for small fallback code part which will be fixed as well).
For instance, in the following case, the class Bam should not be discovered:
@ApplicationScoped class Baz implements Bar { } // no explicit BDA, but inherited app scope class Bam extends Baz { }