Community
Participate
Working Groups
Created attachment 105064 [details] The JSP that gets multiple flagged lines for the warning I have a simple JSP in a Java 5 project. I reference "${pageContext.request.contextPath}". On numerous lines in the JSP I see a flagged warning saying: Map is a raw type. References to generic type Map<K,V> should be parameterized I wrote a question about this in the webtools group, and "Nitin Dahyabhai" said the following: "That's a bug in the underlying servlet source (created from your JSP file) that's being validated--it's not written with generics when the project source level supports/requires it."
Should make use of the org.eclipse.jdt.core.compiler.source value from org.eclipse.jdt.core.IJavaProject.getOption(String, boolean) when choosing the main boilerplate for the translation.
My mistake, it's the EL generator and not the main translator class.
Created attachment 114842 [details] patch Checks the compiler source version to determine if the maps used should be parameterized.
Looks good, although you should add a check for the TaglibController method call returning null.
Released to HEAD and 3_0_maintenance
Verified in wtp-R-3.0.3-20081113203138
*** Bug 226841 has been marked as a duplicate of this bug. ***