Bug 569293 - Wrong interpretation of generic types inside JSP attributes definition leads to false positive errors
Summary: Wrong interpretation of generic types inside JSP attributes definition leads ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-30 12:08 EST by Frédéric Rocheron CLA
Modified: 2020-11-30 12:08 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>).