Announcement Announcement Module
Collapse
No announcement yet.
MVC and Generic Types Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • MVC and Generic Types

    I'm using Spring webmvc 3.2.1. I have the following code in a JSP:

    <%@ taglib prefix="sf"uri="http://www.springframework.org/tags/form"%>
    ......
    <sf:errors path="firstName"/>


    I'm getting the following warning in Spring Tool Suite 3.2.0 Release:

    List is a raw type. References to generic type List<E> should be parameterized

    Is there a way to fix this warning? If there is a way to just turn off that specific validation for JSPs (and NOT Java code) I would be happy enough with that.

    Thanks,
    Johnny

  • #2
    Did you ever resolve this issue? I'm having the same problem and finding no solutions.

    Comment


    • #3
      You can turn off warning for Generic raw type to project or workspace by configuring the compiler option. To find this option, please open workspace preference or project properties > Java > Compiler > Errors/Warnings > Generic types > Usage of raw type. You can set eclipse to ignore, warn, or error on the issue.


      Comment

      Working...
      X