If you specify and invalid value for the setDateParam type attribute, the query is still executed. This should result in a translation error. <sql:dateParam value="${theDate}" type='invalidType'/>
Fixed. Invalid 'type' attribute now causes JspException to be raised.
Also note that since 'type' in <sql:dateParam> is dynamic, an invalid value for it will not trigger any error at translation time. Instead, it will be detected at runtime.