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

eclipse中某个类报错:Syntax error, parameterized types are only available if source level is 1.5

错误解决:将编译器换成1.5及以上

Eclipse--Window--Preferences--java--Compiler下设置编译器版本

如图:

Syntax error, parameterized types are only available if source level is 1.5_第1张图片


你可能感兴趣的:(编译器版本选择问题)