-
Bug
-
Resolution: Done
-
Major
-
2.0.3.Final, 2.0.4.Final, 2.1.0.Final
-
None
-
- setup a basic Interceptor test case
- inject @ApplicationScoped bean inside Interceptor
- pass InvocationContext to bean
- invoke InvocationContext#proceed() from within bean
If an interceptor delegates the invocation of the intercepted method (via context.proceeed() or ctx.getMethd(ctx.getTarget(),ctx.getParameters())
to any scoped bean (e.g. ApplicationScoped), the proxy that handles the bean delegates to the beginning of the interceptor chains, hence invokes the delegating interceptor in what becomes an infinite loop.