You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2014/11/18 10:18:34 UTC

[jira] [Updated] (OWB-930) NotificationManager#disableOverriddenObservers removes wrong observers

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

Mark Struberg updated OWB-930:
------------------------------
    Fix Version/s:     (was: 2.0.0)
                   1.5.0

> 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, 1.5.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.3.4#6332)