Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Invalid expressions in attribute values or template text should trigger a translation (compile time) error, not a run time error.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1816338 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Nov 25, 2017
1 parent 5b3c1eb commit 67f531e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion java/org/apache/jasper/compiler/Validator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ private void prepareExpression(ELNode.Nodes el, Node n, String expr)
try {
ef.createValueExpression(ctx, expr, Object.class);
} catch (ELException e) {

throw new JasperException(e);
}
}

Expand Down
5 changes: 5 additions & 0 deletions webapps/docs/changelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@
<bug>61604</bug>: Fix SMAP generation for JSPs that generate no output.
(markt)
</fix>
<fix>
<bug>61816</bug>: Invalid expressions in attribute values or template
text should trigger a translation (compile time) error, not a run time
error. (markt)
</fix>
</changelog>
</subsection>
<subsection name="WebSocket">
Expand Down

0 comments on commit 67f531e

Please sign in to comment.