Bug 222215 - Using a TEI in a commented jsp tag gives a "cannot resolved" error
Summary: Using a TEI in a commented jsp tag gives a "cannot resolved" error
Status: VERIFIED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-03-11 07:45 EDT by Francois-xavier Panaget CLA
Modified: 2009-02-05 16:03 EST (History)
1 user (show)

See Also:


Attachments
proposed patch (968 bytes, patch)
2008-11-20 18:06 EST, Nitin Dahyabhai CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois-xavier Panaget CLA 2008-03-11 07:45:29 EDT
Build ID: I20070625-1500 

Steps To Reproduce:
1. Create a jsp with the following content:
<%@taglib uri="http://jakarta.apache.org/struts/tags-logic"   
prefix="logic"%>                                              
<logic:iterate id="tt"><%=tt%></logic:iterate>                
<%  String s="tyty"; %>                                       
<%=s %>                                                       
<!--                                                          
<logic:iterate id="ttt"><%=ttt%></logic:iterate>              
<%=s %>                                                       
-->  
2. Save
Result                                                        
the jsp expression ttt is marked as not resolved although it was commented.
The expression for s is on the other hand not flagged as an error.
At runtime there is no error.

More information:
this does not seem to be exact same scenario as :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=134326
Comment 1 Nitin Dahyabhai CLA 2008-03-20 14:31:49 EDT
Correct, because custom tags within comments are not (yet) supported.
Comment 2 Nitin Dahyabhai CLA 2008-11-20 18:06:07 EST
Created attachment 118416 [details]
proposed patch
Comment 3 Nitin Dahyabhai CLA 2008-12-10 20:42:24 EST
Released
Comment 4 Nick Sandonato CLA 2009-02-05 16:03:25 EST
Verified in S-3.1M5-20090205031422.