I met some CNF problem when running full profile Geronimo TCK. I traced
the problem and found even there's no annoation at all in implClass.
deploySingleAnnoatedType() will still get executed and scan all the field of
the implClass. See following code in method:
org.apache.webbeans.config.BeansDeployer.deployFromClassPath(ScannerService)
...
AnnotatedType<?> annotatedType =
webBeansContext.getAnnotatedElementFactory().newAnnotatedType(implClass);
if (null != annotatedType)
{
deploySingleAnnotatedType(implClass, annotatedType);
}
...
I'm wondering if the condition should be something like this:
if (null != annotatedType*&&annotatedType.getAnnotations().size()>0*)
{
deploySingleAnnotatedType(implClass, annotatedType);
}
Any comments ?
--
Shawn