Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "JDT Core/Java8"

(IMPORTANT NOTE)
(Current status)
Line 13: Line 13:
  
 
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]]
 
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]]
 +
 +
JDT UI changes are tracked in [[JDT UI/Java8]]
  
 
<br>
 
<br>
 +
 
= IMPORTANT NOTE =
 
= IMPORTANT NOTE =
 
*The following lines should be added in all headers of modified files for Java&trade; 8 implementation:<code>
 
*The following lines should be added in all headers of modified files for Java&trade; 8 implementation:<code>

Revision as of 09:56, 15 March 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

Java 8 features that are being worked on


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]

JDT UI changes are tracked in JDT UI/Java8


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

  • You need to install a JDK8 build as an installed JRE in order to run the tests using the JavaSE-1.8 Execution Environment.


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.

Back to the top