Eclipse 日食警告“;列表是原始类型”;以SpringJSP形式
例如,我展示了一个非常简单的Spring表单:Eclipse 日食警告“;列表是原始类型”;以SpringJSP形式,eclipse,spring,jsp,jsp-tags,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" %> &
<%@ 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>
个人信息
名称
我仍然收到两个Eclipse警告:
“列表是原始类型。对泛型类型列表的引用应参数化”
它们是用于生产线的:
Name <form:errors path="name" cssClass="error" />
名称
有没有办法摆脱这些警告?我在朱诺遇到了这个问题。升级到开普勒修复了此问题。来自:
将
添加到JSP的顶部可以解决问题 升级到开普勒并没有为我解决这个问题。这是一个已知的错误。请查看已知的问题:检查链接