-
Bug
-
Resolution: Done
-
Major
-
2.0.4.Final
-
None
-
Weld, Open Liberty
The test AnnotatedTypeConfiguratorTest.configuratorInitializedWithOriginalAT() looks to be incorrect as the wrong constructor of the Cat class might be tested.
The test filters the list of Cat constructors to get a list of constructors with 1 parameter, but there are two constructors that might be returned:
annotatedConstructors = [
[BackedAnnotatedConstructor] public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(String),
[BackedAnnotatedConstructor] @Inject public org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.Cat(@Cats Feed)
]
The test expects the constructor with the Feed parameter to be returned and will fail if the constructor with the String parameter is returned instead.