Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367180

Summary: [parser] EL syntax error when method expression is within parentheses
Product: [WebTools] WTP Source Editing Reporter: Michael Schierl <schierlm>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: mauromol, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=352491
Whiteboard:

Description Michael Schierl CLA 2011-12-20 07:58:57 EST
Build Identifier: 3.7.1 M20110909-1335

As already reported at https://bugs.eclipse.org/bugs/show_bug.cgi?id=352491#c14 (but they told me they are not responsible):

  Eclipse Java EE Developer Tools    
3.3.1.v201107072200-7b7II1PFSK2WIlPwJBmNz-VWwVsTn

Method expressions within parentheses (because of more complex expressions
around them) do not work but create spurious EL Syntax errors.

This expression works (no EL Syntax Error):
<c:if test="${str.substring(1) eq str2.substring(1)}">

This expression does not:
<c:if test="${(str.substring(1) eq str2.substring(1))}">

Reproducible: Always

Steps to Reproduce:
1. Add a new JSP page to a JSP project with taglib support
2. Enter the code in the details
3. Observe validation errors