[
https://issues.apache.org/jira/browse/WW-3621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030993#comment-13030993
]
Dave Newton commented on WW-3621:
---------------------------------
Yet it compiles, hmm.
> IllegalStateException("Not allowed in event phase") thrown when calling
> PortletServletResponse.isCommitted
> ----------------------------------------------------------------------------------------------------------
>
> Key: WW-3621
> URL: https://issues.apache.org/jira/browse/WW-3621
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.1.1
> Environment: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
> Struts-2.0.11.2
> Reporter: Martin Gainty
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> org.apache.struts2.portlet.servlet.PortletServletResponse contains the
> isCommitted method defined here
>
> public boolean isCommitted() {
> if(portletResponse instanceof RenderResponse) {
> return ((RenderResponse)portletResponse).isCommitted();
> }
> else {
> throw new IllegalStateException("Not allowed in event phase");
> }
> }
> but PortletResponse does not contain the isCommitted method :
> $STRUTS2_HOME\lib>jar -xvf portlet-api-1.0.jar
> $STRUTS2_HOME\lib>javap .\javax\portlet\PortletResponse | grep isCommitted
> the PortletServletResponse.isCommitted() could never be succesfull
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira