[cdi-dev] [JBoss JIRA] (CDI-489) NonexistentConversationException thrown at restore view or not?
Tomas Remes (JIRA)
issues at jboss.org
Wed Oct 12 02:29:00 EDT 2016
[ https://issues.jboss.org/browse/CDI-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13305828#comment-13305828 ]
Tomas Remes commented on CDI-489:
---------------------------------
PR sent: https://github.com/cdi-spec/cdi/pull/312
> NonexistentConversationException thrown at restore view or not?
> ---------------------------------------------------------------
>
> Key: CDI-489
> URL: https://issues.jboss.org/browse/CDI-489
> Project: CDI Specification Issues
> Issue Type: Clarification
> Components: Javadoc and API
> Affects Versions: 1.2.Final
> Reporter: Vsevolod Golovanov
> Fix For: 2.0 .Final
>
>
> The 1.0 spec says in 6.7.4:
> {quote}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.{quote}
> 1.1 and 1.2 just say:
> {quote}
> 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.
> {quote}
> Yet the javadoc of NonexistentConversationException for both 1.1 and 1.2 says:
> {quote}
> 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.
> {quote}
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the cdi-dev
mailing list