Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-700

Improper use of CDI SPI by Errai's CDI extension

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.1.0.CR1
    • Component/s: None
    • Labels:
      None

      Description

      Errai's CDI extension holds on to a AfterBeanDiscovery event reference to register observer methods at runtime. This is only supposed to work during the CDI bootstrap process and before the AfterDeploymentValidation event is fired.

      This currently works "by accident" in OWB, and in Weld because Errai clears Weld's observer cache using Java Reflection.

      Our CDI extension should instead register a single observer method for java.lang.Object and @Any which will be responsible for the filtering/dispatching to the actual observers.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  csa Christian Sadilek
                  Reporter:
                  csa Christian Sadilek
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: