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

Lookup of non passivating scope programmatic bean leads to incorrect contextual references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.3
    • None
    • Context and Scopes
    • None

    Description

      When adding a programmatic bean in an extension whose scope is ApplicationScoped, and that bean instance is used to retrieve a contextual instance of that bean, the contextual reference is not the same as the one retrieve either by looking up the bean prior to retrieving the contextual reference or with an injection point that resolves to that bean.

      Attached is a minimal reproducible test case.

      Attachments

        1. OwbTest.java
          2 kB
          Antonin Stefanutti
        2. OwbTestBean.java
          2 kB
          Antonin Stefanutti
        3. OwbTestExtension.java
          0.5 kB
          Antonin Stefanutti
        4. OwbType.java
          0.3 kB
          Antonin Stefanutti

        Activity

          People

            Unassigned Unassigned
            antonin.stefanutti Antonin Stefanutti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: