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

Bug 321882

Summary: Wrong error message: "Type mismatch: cannot convert from boolean to String"
Product: [WebTools] WTP Source Editing Reporter: Alexey Kazakov <alkazako>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev, thatnitind
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Alexey Kazakov CLA 2010-08-05 10:25:34 EDT
Build Identifier: I20100608-0911

1. Create a dynamic web project.
2. Create any JSP.
3. Add ${pageContext.request.userPrincipal != null} into some tag attribute within the page. For example: <h:commandButton rendered="${pageContext.request.userPrincipal != null}" .../>
4. See problems view. There is "Type mismatch: cannot convert from boolean to String" error message.

But:
1. The error marker is placed in the wrong offset.
2. What a strange error at all? ${pageContext.request.userPrincipal != null} return a boolean and why should it be convert to String?

Reproducible: Always
Comment 1 Alexey Kazakov CLA 2010-08-05 10:28:43 EDT
I'm using WTP 3.2.0
Comment 2 Nick Sandonato CLA 2010-08-05 13:32:27 EDT
Thanks for your report. We've addressed this in bug 317062.

*** This bug has been marked as a duplicate of bug 317062 ***