Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-479

detect loops in producer beans vs. producer method parameters at deployment time

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.2.0
    • Component/s: Injection and Lookup
    • Labels:
      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)

        Attachments

          Activity

            People

            • Assignee:
              gerdogdu Gurkan Erdogdu
              Reporter:
              covener Eric Covener
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: