Eclipse警告"List是一个原始类型"在Spring jsp表单中

Ale*_*lex 6 eclipse spring jsp jsp-tags

例如,我展示了一个非常简单的Spring表单:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page session="false" %>
<form:form id="form" method="post" modelAttribute="formBean" cssClass="cleanform">
<fieldset>
    <legend>Personal Info</legend>
    <form:label path="name">
                Name <form:errors path="name" cssClass="error" />
    </form:label>
</fieldset>
</form:form>
Run Code Online (Sandbox Code Playgroud)

我仍然收到2个Eclipse警告:

"List是一个原始类型.对泛型类型List的引用应该参数化"

他们是为了线:

Name <form:errors path="name" cssClass="error" />
Run Code Online (Sandbox Code Playgroud)

有没有办法摆脱这些警告?

Pau*_*kin 0

我在朱诺遇到了这个问题。升级到开普勒解决了这个问题。