Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-489

NonexistentConversationException thrown at restore view or not?

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Done
    • Icon: Major Major
    • 2.0 .Final
    • 1.2.Final
    • Javadoc and API
    • None
    • Sprint 1

      The 1.0 spec says in 6.7.4:

      If the propagated conversation cannot be restored, the container must associate the request with a new transient conversation and throw an exception of type javax.enterprise.context.NonexistentConversationException from the restore
      view phase of the JSF lifecycle. The application may handle this exception using the JSF ExceptionHandler.

      1.1 and 1.2 just say:

      If the propagated conversation cannot be restored, the container must associate the request with a new transient conversation and
      throw an exception of type javax.enterprise.context.NonexistentConversationException.

      Yet the javadoc of NonexistentConversationException for both 1.1 and 1.2 says:

      If the propagated conversation cannot be restored, the container must associate the request with a new transient conversation and throw an exception of type NonexistentConversationException from the restore view phase of the JSF lifecycle.

      So is it supposed to be thrown from restore view or not? I assume not. Probably javadoc should be amended.
      I'm curious about reasoning behind the change. I tried searching for an explanation but didn't find anything.

              Unassigned Unassigned
              vsevolodgol Vsevolod Golovanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: