Bug 226841 - random "Map is a raw type" errors
Summary: random "Map is a raw type" errors
Status: CLOSED DUPLICATE of bug 237332
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: jst.jsp (show other bugs)
Version: 2.0.2   Edit
Hardware: PC Windows Vista
: P3 normal with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2008-04-13 13:18 EDT by Lawrence E. Lewis CLA
Modified: 2009-12-08 16:36 EST (History)
1 user (show)

See Also:


Attachments
screenshot of occurring warning in eclipse (119.55 KB, image/png)
2008-10-24 15:39 EDT, Lorenz CLA
no flags Details

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