| Summary: | Wrong error message: "Type mismatch: cannot convert from boolean to String" | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Alexey Kazakov <alkazako> |
| Component: | jst.jsp | Assignee: | 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: | |||
I'm using WTP 3.2.0 Thanks for your report. We've addressed this in bug 317062. *** This bug has been marked as a duplicate of bug 317062 *** |
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