[
https://issues.apache.org/jira/browse/OWB-930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890902#comment-13890902
]
Gerhard Petracek commented on OWB-930:
--------------------------------------
the patches should be fine. they apply on the 1.2.x branch. for the trunk we
need a 2nd patch (due to changed test-packages)
> 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)