Eclipse 4.3实现对Java 8的支持方法

[复制链接]
查看11 | 回复2 | 2014-2-19 11:55:14 | 显示全部楼层 |阅读模式
Java 8 正式版已经发布了,但最常用的 Java 开发工具 Eclipse 4.3还没有正式发布对 Java 8 的支持。不过目前可以通过更新 JDT 来支持 Java 8。
步骤如下:
1)菜单:Help > Install New Software...
2)输入如下 URL 地址:
http://build.eclipse.org/eclipse/builds/4P/siteDir/updates/4.3-P-builds
3)按回车键
4)选择分类 'Eclipse Java 8 Support (BETA)'
5)为了更快速的安装,请不要选择 'Contact all updates sites during install to find required software'
6)点击 'Next'
7)点击 'Next'
8)接受协议
9)点击 'Finish'
10)重启 Eclipse

回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
截图:


eclipse.jpg (74.66 KB, 下载次数: 0)
下载附件
2014-3-20 11:39 上传

回复

使用道具 举报

千问 | 2014-2-19 11:55:14 | 显示全部楼层
Java 8 features ready to be tested (save for some very minor defects)
JSR 308 - Type Annotations
Default & static methods in interfaces
Support for lambda expressions and method/constructor references is substantially in place except in the areas of type inference, lambda serialization and varargs.
Support for Java 8 type inference specification.
Quick assist support for migrating anonymous classes to lambda expressions and vice versa.
Meta data enhancement specification:
JEP120: Repeating annotations
JEP118: Runtime access to parameter names
JSR269 Enhancements for Pluggable Annotation Processor API and javax.lang.model APIs
Formatter, code completion, code navigation, search & indexing, reconciler, incremental builder support for all of Java 8
Basic IDE enablement for all of Java 8
AST/APIs for all of Java 8
Serializable lambda support
JSR308 type annotations based null analysis (substantially complete - some open issues exist)
UI: Basic infrastructure like the Java-related views, Java Compiler compliance settings, Organize Imports, Mark Occurrences, Open Declaration (F3), Edit > Expand Selection To > ..., Content Assist (Ctrl+Space), Formatting, and Source Actions should work correctly in most situations when you start using them with Java 8 constructs.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行