You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2013/04/29 20:20:15 UTC
[jira] [Resolved] (OWB-479) detect loops in producer beans vs.
producer method parameters at deployment time
[ https://issues.apache.org/jira/browse/OWB-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-479.
-------------------------------
Resolution: Won't Fix
Gonna revoke this, as it _will_ get detected at startup and noone liked to implement a more user friendly solution. The stacktrace will contain all the information a user needs ;)
> detect loops in producer beans vs. producer method parameters at deployment time
> --------------------------------------------------------------------------------
>
> Key: OWB-479
> URL: https://issues.apache.org/jira/browse/OWB-479
> Project: OpenWebBeans
> Issue Type: Improvement
> Components: Injection and Lookup
> Affects Versions: 1.0.0
> Reporter: Eric Covener
> Assignee: Gurkan Erdogdu
> Priority: Minor
> Fix For: 1.2.0
>
>
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira