Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-930

NotificationManager#disableOverriddenObservers removes wrong observers

    XMLWordPrintableJSON

Details

    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

      Attachments

        1. OWB-930_tests.patch
          22 kB
          Gerhard Petracek
        2. OWB-930.patch
          25 kB
          Gerhard Petracek

        Activity

          People

            arne Arne Limburg
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: