Syntax error, type parameters are only available if source level is 1.5
2015-10-16 00:09
495 查看
出处:
Syntax error, type parameters are only available if source level is 1.5
当我的eclipse使用jdk1.6的时候,创建泛型类,系统会提示错误:
“Set project compiler compliance settings to '1.5'”
“Syntax error, type parameters are only available if source level is 1.5”
这时候需要改动两个地方:
1.右击项目-->properties-->java compiler -->选择enabel project specific setting -->Compiler compliance level :选择1.5版本,其他默认
2.右击项目-->properties -->project facets-->将java后的下拉框选择为5.0
Syntax error, type parameters are only available if source level is 1.5
当我的eclipse使用jdk1.6的时候,创建泛型类,系统会提示错误:
“Set project compiler compliance settings to '1.5'”
“Syntax error, type parameters are only available if source level is 1.5”
这时候需要改动两个地方:
1.右击项目-->properties-->java compiler -->选择enabel project specific setting -->Compiler compliance level :选择1.5版本,其他默认
2.右击项目-->properties -->project facets-->将java后的下拉框选择为5.0
相关文章推荐
- TurboMail邮件系统再次通过ISO9001体系认证
- ANN学习-算法篇--菜鸟之路(一)
- 网页中Email邮件显示与删除操作
- leetcode之Contains Duplicate II
- Uvalive 4267 Finding The Heaviest Path (Regionals 2008 Asia Taipei +DFS结点最大权值路径)
- leetcode之Contains Duplicate
- hdu 1983 Kaitou Kid - The Phantom Thief (2)
- NSURLErrorDomain Code=-1002 “unsupported URL”
- 人工智能 学习笔记 —— Pre
- ora-01654pk_sceautosm无法通过8(在表空间servicxe_main_idx扩展)
- POJ1681 Painter's Problem 高斯消元+枚举
- the working copy"" failed to commit files.
- Tair LDB基于Prefixkey中期范围内查找性能优化项目总结
- Codeforces Round #320 (Div. 2) A. Raising Bacteria
- UNIX Domain Socket-同一台主机的进程间通讯(IPC)
- C. Captain Marmot (Codeforces Round #271)
- 8.Contains Duplicate
- hdu 4251 The Famous ICPC Team Again(划分树)
- 3.1.11 WM_PAINT消息
- iphone使用keychain来存取用户名和密码