Bug 569293

Summary: Wrong interpretation of generic types inside JSP attributes definition leads to false positive errors
Product: [Eclipse Project] Platform Reporter: Frédéric Rocheron <frederic.rocheron>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.17   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:

Description Frédéric Rocheron CLA 2020-11-30 12:08:59 EST
When a JSP attribute is defined with a generic type, the '<' and '>' characters inside the type declaration leads to a wrong interpretation by Eclipse.

Example :

<%@ attribute name="name" required="false" type="java.util.Map<java.lang.String, java.lang.String>" %>

Eclipse errors :
Multiple annotations found at this line:
	- Undefined attribute name (java.lang.String).
	- Unknown tag (java.lang.String).
	- Invalid location of text (,) in tag (<java.lang.String>).
	- Start tag (<jsp:directive.attribute>) not closed properly, 
	 expected '>'.
	- Invalid location of text (") in tag (<jsp:directive.attribute>).