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

Bug 175193

Summary: "Multiple annotations found at this line" error, even when syntax appear to be correct
Product: [WebTools] WTP Source Editing Reporter: Silas Christiansen <stchristiansen>
Component: jst.jspAssignee: Nitin Dahyabhai <thatnitind>
Status: CLOSED DUPLICATE QA Contact: David Williams <david_williams>
Severity: normal    
Priority: P3 CC: for.work.things, huang-bc
Version: 1.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Silas Christiansen CLA 2007-02-22 16:08:56 EST
Build ID: M20060921-0945

Steps To Reproduce:
1. Create a new jsp
2. Past in the following
<html>
<body>
<select name="test">
	<option value="1" <%= ("1".equals(true)?"SELECTED":"") %>>option 1</option>
	<option value="2" <%= ("2".equals(false)?"SELECTED":"") %>>option 2</option>
	<option value="3" <%= ("3".equals(false)?"SELECTED":"") %>>option 3</option>
</select>
</body>
</html>
3. The errors appear
4. An more annoying issue is the fact that if you have a large jsp and have this kind of code the whole app gets slower and freezes up at times.


More information:
If there is something wrong with the syntax let me know, it runs fine in tomcat 5.5 and even if the syntax isn't correct the app should not get pegged just for trying to validate it. Let me know if you have any questions
Comment 1 Nitin Dahyabhai CLA 2007-02-22 17:07:57 EST
Could you list the annotations that were found?  The only errors I saw were "The method equals(Object) in the type String is not applicable for the arguments (boolean)".
Comment 2 Amy Wu CLA 2007-02-22 18:22:56 EST
If it's "undefined attribute name" warnings, then this has already been fixed in WTP 1.5.3 & WTP 2.0 (since M2)
Comment 3 Amy Wu CLA 2007-02-22 18:23:28 EST
(bug 159926 & bug 143209)
Comment 4 Silas Christiansen CLA 2007-02-22 18:26:48 EST
(In reply to comment #3)
> (bug 159926 & bug 143209)

You are correct! That is what I was seeing, thanks. YOU ARE FAST!! :)

*** This bug has been marked as a duplicate of bug 143209 ***
Comment 5 John Lanuti CLA 2007-04-03 11:44:58 EDT
Closing as part of mass query to clean up old resolved bugs in untargetted milestones.