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

Weld ignores observer methods declared in superclasses

    XMLWordPrintable

Details

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

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: