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

Beans containing a producerMethod are using the wrong CreationalContext

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.6
    • Fix Version/s: 1.1.7
    • Component/s: Context and Scopes
    • Labels:
      None

      Description

      When an @ApplicationScoped Bean containing a producermethod has a @Dependent scoped injection point and produces a @Requestion bean then it will get destroyed with the produced @RequestScoped bean.

      This is actually wrong as it should survive until the end of the application and only then get destroyed!

        Attachments

        1. OWB-725_test.patch
          13 kB
          Mark Struberg

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              struberg Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: