Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.0.0
-
None
Description
Currently OWB can cause a stack overflow if a parameter on a producer method is satisfied by the same bean as the producer method itself, it would be nice if we could trap such a thing in producer beans at deployment time and minimally warn about the offending method/parameter.
at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:723)
at org.apache.webbeans.inject.AbstractInjectable.inject(AbstractInjectable.java:134)
at org.apache.webbeans.inject.InjectableMethods.doInjection(InjectableMethods.java:117)
at org.apache.webbeans.component.ProducerMethodBean.createDefaultInstance(ProducerMethodBean.java:193)
at org.apache.webbeans.component.ProducerMethodBean.createInstance(ProducerMethodBean.java:155)
at org.apache.webbeans.component.AbstractOwbBean.createNewInstance(AbstractOwbBean.java:208)
at org.apache.webbeans.portable.creation.AbstractProducer.produce(AbstractProducer.java:82)
at org.apache.webbeans.component.InjectionTargetWrapper.produce(InjectionTargetWrapper.java:142)
at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:166)
at org.apache.webbeans.context.DependentContext.getInstance(DependentContext.java:69)
at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:191)
at org.apache.webbeans.container.BeanManagerImpl.getReference(BeanManagerImpl.java:839)
at org.apache.webbeans.container.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:723)