diff --git a/weld-lite-extension-translator/src/main/java/org/jboss/weld/lite/extension/translator/ExtensionPhaseRegistration.java b/weld-lite-extension-translator/src/main/java/org/jboss/weld/lite/extension/translator/ExtensionPhaseRegistration.java index 40b8102912..56e7509781 100644 --- a/weld-lite-extension-translator/src/main/java/org/jboss/weld/lite/extension/translator/ExtensionPhaseRegistration.java +++ b/weld-lite-extension-translator/src/main/java/org/jboss/weld/lite/extension/translator/ExtensionPhaseRegistration.java @@ -61,8 +61,13 @@ void runExtensionMethod(java.lang.reflect.Method method) { disposer = ((jakarta.enterprise.inject.spi.ProcessProducerMethod) pb) .getAnnotatedDisposedParameter(); } - - argument = new BeanInfoImpl(pb.getBean(), pb.getAnnotated(), disposer, beanManager); + if (pb.getBean() instanceof jakarta.enterprise.inject.spi.Interceptor) { + jakarta.enterprise.inject.spi.Interceptor cdiInterceptor = (jakarta.enterprise.inject.spi.Interceptor) pb + .getBean(); + argument = new InterceptorInfoImpl(cdiInterceptor, pb.getAnnotated(), beanManager); + } else { + argument = new BeanInfoImpl(pb.getBean(), pb.getAnnotated(), disposer, beanManager); + } } else { argument = argumentForExtensionMethod(parameter, method); }