Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-212

DestroyedInstanceReturnedByGetTest assumes that the application scope can be destroyed and then re-created

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.5.CR1, 1.1.0.Alpha2
    • None
    • None
    • None

      Context applicationContext = getCurrentManager().getContext(ApplicationScoped.class);
      destroyContext(applicationContext);
      setContextActive(applicationContext);

      myApplicationBeanInstance = applicationContext.get(myApplicationBean);

      The spec does not require that the application scope can be destroyed and re-created, if fact it could be argued that this behaviour violates the spec, as the application context is supposed to last for the lifetime of the application.

            mkouba@redhat.com Martin Kouba
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: