Community
Participate
Working Groups
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>
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.
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.
This should have been resolved by Bug 237332. *** This bug has been marked as a duplicate of bug 237332 ***