The type List is not generic
2013-10-18 09:41
579 查看
错误:The type List is not generic; it cannot be parameterized with
arguments
代码如下:
public List
getAllActivity() {
return
(List)
getSqlMapClientTemplate().queryForList("Activity.getAllActivity");
}
原因:import java.awt.List;不支持泛型。修改引用uitl包,import java.util.List;
arguments
代码如下:
public List
getAllActivity() {
return
(List)
getSqlMapClientTemplate().queryForList("Activity.getAllActivity");
}
原因:import java.awt.List;不支持泛型。修改引用uitl包,import java.util.List;
相关文章推荐
- The type List is not generic; it cannot be parameterized with arguments <Integer>
- the type List is not generic; it cannot be parameterized with arguments<T>解决办法
- The type List is not generic; it cannot be parameterized with arguments
- List错误;The type List is not generic
- The type List is not generic; it cannot be parameterized with arguments***
- The type JComboBox is not generic; it cannot be parameterized with arguments <String>错误
- The type List is not generic; it cannot be parameterized with arguments
- The type List is not generic; it cannot be parameterized with arguments
- The type List is not generic(转载)
- The type List is not generic; it cannot be parameterized with arguments<T>
- The type List is not generic; it cannot be parameterized with arguments
- The type List is not generic
- Ubutun 编译完sdk 出现Target id is not valid. Use 'android list targets' to get the target ids.
- The path "" is not a valid path to the 3.5.0-44-generic kernel headers.
- 错误整理:Unable to add module to the current project as it is not of packaging type 'pom'
- VM tools安装错误The path "" is not a valid path to the xx generic kernel headers.
- **Access restriction: The type 'WebServlet' is not API (……)**
- Access restriction: The type 'JPEGImageWriter' is not API
- android avd2.2获取街道信息:Geocoder, “the service is not available” && Geocoder返回List为null,得不到街道信息
- The base class includes the field '...', but its type (...) is not compatible with the type of control (...)