Syntax error, parameterized types are only available if source level is 1.5

Syntax error, parameterized types are only available if source level is 1.5

编译级别问题
1.在eclipse中菜单Window----preferences----java-----compiler把右边中的Compiler compliance level改为1.6
Syntax <wbr>error, <wbr>parameterized <wbr>types <wbr>are <wbr>only <wbr>available <wbr>if <wbr>source <wbr>level <wbr>is <wbr>1.5

 
2.就右击项目,修改properties,找到java compiler修改compiler compliance level为1.6
Syntax <wbr>error, <wbr>parameterized <wbr>types <wbr>are <wbr>only <wbr>available <wbr>if <wbr>source <wbr>level <wbr>is <wbr>1.5
posted @ 2014-11-24 03:43  代码缔造的帝国  阅读(1097)  评论(0编辑  收藏  举报