Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.1
-
None
Description
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