Gerhard Petracek created OWB-930:
------------------------------------

             Summary: NotificationManager#disableOverriddenObservers removes 
wrong observers
                 Key: OWB-930
                 URL: https://issues.apache.org/jira/browse/OWB-930
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Inheritance, Specialization
    Affects Versions: 1.2.1
            Reporter: Gerhard Petracek
            Assignee: Arne Limburg
             Fix For: 1.2.2, 2.0.0


if (!observerMethod.getJavaMember().getDeclaringClass().equals(subClass))

means that observer-methods of other beans (same name and same parameters) will 
be removed as well.

+ subClass is not the sub-class since 
NotificationManager#disableOverriddenObservers gets called with:
webBeansContext.getBeanManagerImpl().getNotificationManager().disableOverriddenObservers(superClass);

the existing tests just work due to the usage of protected observer-methods. 
with public observer-methods they fail.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to