https://issues.apache.org/bugzilla/show_bug.cgi?id=55792
Konstantin Kolinko <knst.koli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Collection literals not |EL expression containing a |recognized within stream |map is not parsed |lambda expression, result |correctly. '}' is |in syntax error |interpreted as closing | |brace of the EL expression. --- Comment #2 from Konstantin Kolinko <knst.koli...@gmail.com> --- (For reference - discussion on users@ before filing this issue http://tomcat.markmail.org/thread/mohw6qhaauez27h5 The only issue here is that '}' in declaration of a map is interpreted as closing brace of EL expression. I am changing TITLE accordingly. Searching through Tomcat 8 sources, we have a similar test: /test/webapp/el-misc.jsp The code there is <tags:echo echo='19-${{1,2,3,4}.stream().max().orElse(-1)}' /> The above works when EL is used in an attribute of a tag. But when I move the EL expression into the body of the document, it starts to fail. The following simple JSP fails [[[ <%@page contentType="text/plain; charset=UTF-8"%> ${{1,2,3,4}.stream().max().orElse(-1)} ]]] javax.el.ELException: Failed to parse the expression [${{1,2,3,4}] For completeness, '}' in string literals is parsed correctly. The following JSP does work [[[ <%@page contentType="text/plain; charset=UTF-8"%> ${'}A'}B ${"}C"}D ]]] It prints }AB }CD -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org