<%--
 Copyright 2003, Oracle and its affiliates. All rights reserved.
 ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="tck" uri="http://java.sun.com/jstltck/jstltck-util" %>
<tck:test testName="negativeCWOWhenExcBodyContentTest">
    <!-- Validate an exception caused by the body content of the when
             action is propagated to the choose action which in turn
             propagates the exception. -->
    <tck:catch var="ex" exception="java.lang.IllegalArgumentException">
        <c:choose>
            <c:when test="${true}">
                <tck:throwit/>
            </c:when>
        </c:choose>
    </tck:catch>
    <c:out value="${ex}" default="Test FAILED" escapeXml="false"/>

</tck:test>
