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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.0.0
    • 1.2.0
    • Injection and Lookup
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: