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

DestroyedInstanceReturnedByGetTest seems broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.2.CR3
    • 1.0.2.CR2
    • Tests
    • None
    • Compatibility/Configuration

      DestroyedInstanceReturnedByGetTest currently calls

            destroyContext(getCurrentManager().getContext(SessionScoped.class));
            setContextActive(getCurrentManager().getContext(SessionScoped.class));
      

      The problem is that destroying the SessionContext will render it inactive. So the getContext() call in the following line will throw a ContextNotActiveException according to the spec 6.5.1: "If no active context object exists for the scope type, the container throws a ContextNotActiveException."

              Unassigned Unassigned
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: