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

Bug 226841

Summary: random "Map is a raw type" errors
Product: [WebTools] WTP Source Editing Reporter: Lawrence E. Lewis <lel>
Component: jst.jspAssignee: Nitin Dahyabhai <thatnitind>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: 2.0.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
screenshot of occurring warning in eclipse none

Description Lawrence E. Lewis CLA 2008-04-13 13:18:15 EDT
In the following simple index.jsp file below, I get "Map is a raw type. References to generic type Map<K,V> should be parameterized" on several of the tags near the usage of the EL:${pageContext.request.contextPath}. I'm not real familiar with EL/tag library issues, but the error message at a minimum is confusing, and the underlined errors do not include the EL, but do include things like the final </body> tag. I looked this error message up via google, and found one comment that it was a known problem, but fixed in 3.2. Removing the taglib directive does not fix the problem, so that leads me to believe it has more to do with the EL syntax. Also, the thing is very intermittent. I tried removing various pieces and things would go away and come back with no apparent logic. However, keeping the taglib directive, but removing the EL (${pageContext.request.contextPath}), definitely fixes the problem. So, again, this seems more like an issue with the sytax analyzer for jsps's.

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- $Id$ -->

<html>
<head>
    <link rel=stylesheet type="text/css" href="${pageContext.request.contextPath}/styles/style1.css" />
</head>

<body onload="pageInit();">
	<div id="main">
		<div id="banner">
			<img src="${pageContext.request.contextPath}/images/mod9c_42px.png" alt="Accurate Financial Data. The only real-time earnings and sales database" />
		</div>
	</div>
</body>
</html>
Comment 1 Nitin Dahyabhai CLA 2008-04-14 16:17:57 EDT
Most likely caused by our EL generator/translator not creating 1.5 syntax in those projects--not sure when/how this would have been "fixed" earlier.
Comment 2 Lorenz CLA 2008-10-24 15:39:44 EDT
Created attachment 116102 [details]
screenshot of occurring warning in eclipse

I also experience this error in eclipse ganymede on a simple web-project with JSF,richfaces and hibernate. I get several warnings about the "Map is a raw type..." It's the only warning I get btw.. I've added a screenshot.
Comment 3 Nick Sandonato CLA 2009-12-08 16:36:56 EST
This should have been resolved by Bug 237332.

*** This bug has been marked as a duplicate of bug 237332 ***