Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-732

Weld ignores observer methods declared in superclasses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1.0.Beta2
    • 1.1.0.Beta1
    • None
    • None

      Currently when discovering observers weld only checks declared methods of the class, which ignores any observers declared in superclasses that should be inherited.

      AbstractBeanDeployer:
       protected <X> void createObserverMethods(RIBean<X> declaringBean, WeldClass<X> annotatedClass)
         {
            for (WeldMethod<?, ? super X> method : annotatedClass.getDeclaredWeldMethodsWithAnnotatedParameters(Observes.class))
            {
               createObserverMethod(declaringBean, method);
            }
         }
      

      Notice the use of get*Declared*WeldMethodsWithAnnotatedParameters().

              Unassigned Unassigned
              igor.vaynberg Igor Vaynberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: