[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.webtools] Misplaced warning in JSP editors

Hello,

I'm posting my bug report here as I cannot reach the Bugzilla page of Eclipse main web site. I can open a bug as soon as I can reach the page !

In the JSP editor, I have warning when opening a page, concerning an included page but the localization is in the opened page, like if the included page was copied as a whole in my opened page. I hope I am clear enoug. Here is a simple test case to reproduce this bug:

file header.jsp
<%
  String foo = "Hello world";
  String bar = "Eclipse rocks";
%>


file test.jsp (opened file) <%@include file="head.jsp"%> <table></table>


When editing the test.jpg file, I have then warning on line 2 (<table></table>) about "The local variable bar is never read", which concerns the included page, not the currently opened page.



I have this bug both with wtp1.0M9 and wtp1.0RC1. That's quite annoying, and I tend to go back to 1.0M8 :(



Whatever, I am still a big fan of the wtp and want to congratulate the wtp team for their great work !


Regards
Sylvain