Description
Openwebbeans breaks CDI specs, if a producer method is annotated with a stereotype, which includes interceptors. The produced beans won't be intercepted.
A first debugging shows, that the error may be in org.apache.webbeans.intercept.InterceptorHandler.invoke(Object, Method, Object[], CreationalContextImpl<?>):231:
—
if (!isNotInterceptedOrDecoratedMethod &&
!ClassUtil.isObjectMethod(methodName) && bean instanceof InjectionTargetBean<?>)
—
The bean is of type ProducerMethodBean, which is not an instance of InjectionTargetBean, the if-block won't be executed.
Attached you'll find a test case.