Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "JDT Core/Java8"
m |
(→IMPORTANT NOTE) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
= Java 8 features that are being worked on = | = Java 8 features that are being worked on = | ||
− | * JSR 335 | + | * JSR 335 [[https://bugs.eclipse.org/bugs/show_bug.cgi?id=380188 Lambda expressions]] + [[https://bugs.eclipse.org/bugs/show_bug.cgi?id=380501 Default Methods]] |
− | * JSR 308 | + | * JSR 308 [[https://bugs.eclipse.org/bugs/show_bug.cgi?id=380501 Type annotations]] |
<br> | <br> | ||
Line 11: | Line 11: | ||
<br> | <br> | ||
= Current status<br> = | = Current status<br> = | ||
− | + | ||
+ | Updates are filed in the top level bug [[https://bugs.eclipse.org/bugs/show_bug.cgi?id=380190 380190 - Add support for Java SE 8]] | ||
<br> | <br> | ||
Line 19: | Line 20: | ||
* Community Process (JCP) and is made available for testing and evaluation purposes | * Community Process (JCP) and is made available for testing and evaluation purposes | ||
* only. The code is not compatible with any specification of the JCP. | * only. The code is not compatible with any specification of the JCP. | ||
− | *</code> | + | * |
+ | </code> | ||
<br> | <br> | ||
+ | |||
= What to do to set up the IDE = | = What to do to set up the IDE = | ||
− | *Checkout the BETA_JAVA8 branch of the following git repositories | + | *Checkout the BETA_JAVA8 branch of the following git repositories: |
**JDT/Core repository - git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git | **JDT/Core repository - git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git | ||
*You need to install a JDK8 build as an installed JRE in order to run the tests using the JavaSE-1.8 Execution Environment. | *You need to install a JDK8 build as an installed JRE in order to run the tests using the JavaSE-1.8 Execution Environment. | ||
− | *For more information on how to work with git repositories, look at http://wiki.eclipse.org/Platform-releng/Git_Workflows | + | *For more information on how to work with git repositories, look at http://wiki.eclipse.org/Platform-releng/Git_Workflows . |
+ | |||
+ | *As [[Version_Numbering#API_Baseline_in_API_Tools|API Baseline]], use 3.8 (or [http://download.eclipse.org/eclipse/downloads/drops/S-3.8RC4-201206081200/ 3.8 RC4] until 3.8 is released). | ||
<br> | <br> | ||
+ | |||
+ | = Configure a project to use Java 8 features = | ||
+ | |||
+ | Because JDT/UI does not yet offer the options to configure a project for Java 8, any projects wishing to use Java 8 features should be manually configured by ensuring these lines in <code><project>/.settings/org.eclipse.jdt.core.prefs</code>: | ||
+ | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
+ | org.eclipse.jdt.core.compiler.compliance=1.8 | ||
+ | org.eclipse.jdt.core.compiler.source=1.8 | ||
+ | |||
= Disclaimer = | = Disclaimer = | ||
This is a work in progress. The contents of the BETA_JAVA8 branch will be updated as the changes are made to the JSR Specification. | This is a work in progress. The contents of the BETA_JAVA8 branch will be updated as the changes are made to the JSR Specification. | ||
− | If you need any help with this, please contact the JDT/Core team through either the [ | + | If you need any help with this, please contact the JDT/Core team through either the [http://www.eclipse.org/forums/index.php/f/13/ forum] or [https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT Bugzilla]. |
+ | |||
+ | [[Category:JDT]] |
Revision as of 09:56, 18 February 2013
This page summarizes the work that is being done to add Java™ 8 support into Eclipse. As of now JSR 335 (Lambda expressions) and JSR 308 (Type annotations) are being planned
Contents
Java 8 features that are being worked on
- JSR 335 [Lambda expressions] + [Default Methods]
- JSR 308 [Type annotations]
What needs to be done
- TO BE FILLED
Current status
Updates are filed in the top level bug [380190 - Add support for Java SE 8]
IMPORTANT NOTE
- The following lines should be added in all headers of modified files for Java™ 8 implementation:
* This is an implementation of an early-draft specification developed under the Java * Community Process (JCP) and is made available for testing and evaluation purposes * only. The code is not compatible with any specification of the JCP. *
What to do to set up the IDE
- Checkout the BETA_JAVA8 branch of the following git repositories:
- JDT/Core repository - git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git
- You need to install a JDK8 build as an installed JRE in order to run the tests using the JavaSE-1.8 Execution Environment.
- For more information on how to work with git repositories, look at http://wiki.eclipse.org/Platform-releng/Git_Workflows .
- As API Baseline, use 3.8 (or 3.8 RC4 until 3.8 is released).
Configure a project to use Java 8 features
Because JDT/UI does not yet offer the options to configure a project for Java 8, any projects wishing to use Java 8 features should be manually configured by ensuring these lines in <project>/.settings/org.eclipse.jdt.core.prefs
:
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.source=1.8
Disclaimer
This is a work in progress. The contents of the BETA_JAVA8 branch will be updated as the changes are made to the JSR Specification.
If you need any help with this, please contact the JDT/Core team through either the forum or Bugzilla.