[ 
https://issues.apache.org/jira/browse/OWB-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gerhard Petracek resolved OWB-930.
----------------------------------

    Resolution: Fixed

> 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
>
>         Attachments: OWB-930.patch, OWB-930_tests.patch
>
>
> 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.
> workaround:
> use protected observer-methods with different names



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

Reply via email to