SlideShare a Scribd company logo
1 of 8
Download to read offline
Eclipse Luna: Ready for JavaTM
8
Java SE 8 is the most significant expansion of the Java programming model yet and Eclipse
Luna (R 4.4) has been reloaded to be ready for Java 8.
Here is a glimpse of goodies provided by Eclipse as part of the Java 8 support:
UNDER THE HOOD
The Java tooling in Eclipse has its own compiler implementation which not only generates the
class files, but also produces a Java document model which forms the basis for implementing a
large number of tooling features.
Preparing Eclipse to be Java 8 ready involved a series of steps filled with technical and process
challenges to support all the incremental updates of the Java Language Specification: the
parser, compiler and indexer were evolved, the new type inference engine was developed,
debugger evaluation support was added, major updates were introduced in DOM AST and Java
model APIs, existing functionality was retooled to blend with the new language features and
new functionality was added to make your experience with Java 8 more pleasant.
HIGHLIGHTS
 The Eclipse Compiler for Java (ECJ) implements all the new Java 8 language
enhancements.
 Quickly change a project to be compatible with Java 8:
 Convert anonymous class creations to lambda expressions (and back) by invoking the
Quick Assists (Ctrl+1):
 Convert to lambda expression
 Convert to anonymous class creation
Or invoke Source > Clean Up... to migrate all your existing code to use lambda
expressions where applicable:
The functionality to migrate anonymous classes to lambda expressions has been made
intelligent to make sure that only valid code is generated. It ignores the conversion
where it is not possible, and it even updates the variable names to prevent name
conflicts with variables from an enclosing scope. For example, the conversion is not
performed if the anonymous class does not implement a functional interface,
implements a functional interface with a generic abstract method, contains additional
members, contains unqualified ‘this’ or ‘super’ references etc.
 Change lambda expression’s body to block or expression by invoking the Quick Assists
(Ctrl+1):
 Change body expression to block
 Change body block to expression
 The new concise syntax of lambda expressions and method references looks nice, but it
may not be so intuitive for developers due to inferred target types, inferred parameter
types, various shorthand syntaxes for method and constructor references etc. This is
where Eclipse helps you to become more productive while writing or understanding
programs with Java 8 constructs.
 To view the method implemented by the functional interface instances, just hover
on:
- ‘->’ in a lambda expression
- ‘::’ in a method reference
 To navigate to the functional method declaration, hold Ctrl, move the mouse pointer
over '->' or '::', and click the hyperlink:
- In a lambda expression:
- In a method reference:
 You can control the formatting of lambda expressions via new Formatter options:
 Configure the position of braces in lambda body
 Configure the whitespace before and after the arrow operator
 You can search for method reference expressions in Java Search by limiting the match
location of methods or constructors to method references:
 The Type Hierarchy view and Quick Hierarchy (Ctrl+T) (on the functional interface and
its abstract method) show lambda expressions also as implementations of the functional
interface:
 Eclipse also provides Content Assist (Ctrl+Space) support for method references:
 Quickly identify the abstract (A), default (D) and static (S) methods of an interface in
views like Outline, Search, Type Hierarchy, Quick Outline / Hierarchy with the new icon
adornments:
 The Java debugger supports breakpoints in lambda expressions and evaluation or
inspection in the context of interface methods:
 JEP 118 provides the option to store information about method parameters in class files
when a programmer opts for it. This information is then usable via reflection. In 1.8
compliance mode, you can enable this with the new preference option:
 Java tooling features like Refactorings, Source actions, Content assist (Ctrl+Space), Mark
occurrences, Expand selection, Reconciler, Annotation Processor support etc. have been
updated to work well with the new Java 8 features. Here is an example of the extract
method support:
 JSR 308 introduces Type Annotations in Java 8, and Eclipse provides the support for
type annotations based static null analysis by shipping a set of nullness annotations as
version 2.0.0 of the org.eclipse.jdt.annotation bundle. With these annotations, compile
time type checking is possible to ensure that the specified null constraints are not
violated and all possible NullPointerExceptions are reported (active if annotation-based
null analysis is enabled in Java Compiler > Errors/Warnings preferences):
This supports API designers to create better interfaces with stricter rules about what can
be passed to and returned from an API:
 The Eclipse Compiler for Java (with its new Java 8 type inference engine) has also been
verified to successfully build major projects like JRE8, OpenJFX and Eclipse SDK (~250
projects).

More Related Content

Recently uploaded

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 

Recently uploaded (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Eclipse Luna: Ready for Java 8

  • 1. Eclipse Luna: Ready for JavaTM 8 Java SE 8 is the most significant expansion of the Java programming model yet and Eclipse Luna (R 4.4) has been reloaded to be ready for Java 8. Here is a glimpse of goodies provided by Eclipse as part of the Java 8 support: UNDER THE HOOD The Java tooling in Eclipse has its own compiler implementation which not only generates the class files, but also produces a Java document model which forms the basis for implementing a large number of tooling features. Preparing Eclipse to be Java 8 ready involved a series of steps filled with technical and process challenges to support all the incremental updates of the Java Language Specification: the parser, compiler and indexer were evolved, the new type inference engine was developed, debugger evaluation support was added, major updates were introduced in DOM AST and Java model APIs, existing functionality was retooled to blend with the new language features and new functionality was added to make your experience with Java 8 more pleasant.
  • 2. HIGHLIGHTS  The Eclipse Compiler for Java (ECJ) implements all the new Java 8 language enhancements.  Quickly change a project to be compatible with Java 8:  Convert anonymous class creations to lambda expressions (and back) by invoking the Quick Assists (Ctrl+1):  Convert to lambda expression  Convert to anonymous class creation Or invoke Source > Clean Up... to migrate all your existing code to use lambda expressions where applicable:
  • 3. The functionality to migrate anonymous classes to lambda expressions has been made intelligent to make sure that only valid code is generated. It ignores the conversion where it is not possible, and it even updates the variable names to prevent name conflicts with variables from an enclosing scope. For example, the conversion is not performed if the anonymous class does not implement a functional interface, implements a functional interface with a generic abstract method, contains additional members, contains unqualified ‘this’ or ‘super’ references etc.  Change lambda expression’s body to block or expression by invoking the Quick Assists (Ctrl+1):  Change body expression to block  Change body block to expression  The new concise syntax of lambda expressions and method references looks nice, but it may not be so intuitive for developers due to inferred target types, inferred parameter types, various shorthand syntaxes for method and constructor references etc. This is where Eclipse helps you to become more productive while writing or understanding programs with Java 8 constructs.  To view the method implemented by the functional interface instances, just hover on:
  • 4. - ‘->’ in a lambda expression - ‘::’ in a method reference  To navigate to the functional method declaration, hold Ctrl, move the mouse pointer over '->' or '::', and click the hyperlink: - In a lambda expression: - In a method reference:  You can control the formatting of lambda expressions via new Formatter options:  Configure the position of braces in lambda body  Configure the whitespace before and after the arrow operator  You can search for method reference expressions in Java Search by limiting the match location of methods or constructors to method references:
  • 5.  The Type Hierarchy view and Quick Hierarchy (Ctrl+T) (on the functional interface and its abstract method) show lambda expressions also as implementations of the functional interface:  Eclipse also provides Content Assist (Ctrl+Space) support for method references:
  • 6.  Quickly identify the abstract (A), default (D) and static (S) methods of an interface in views like Outline, Search, Type Hierarchy, Quick Outline / Hierarchy with the new icon adornments:  The Java debugger supports breakpoints in lambda expressions and evaluation or inspection in the context of interface methods:  JEP 118 provides the option to store information about method parameters in class files when a programmer opts for it. This information is then usable via reflection. In 1.8 compliance mode, you can enable this with the new preference option:
  • 7.  Java tooling features like Refactorings, Source actions, Content assist (Ctrl+Space), Mark occurrences, Expand selection, Reconciler, Annotation Processor support etc. have been updated to work well with the new Java 8 features. Here is an example of the extract method support:  JSR 308 introduces Type Annotations in Java 8, and Eclipse provides the support for type annotations based static null analysis by shipping a set of nullness annotations as version 2.0.0 of the org.eclipse.jdt.annotation bundle. With these annotations, compile time type checking is possible to ensure that the specified null constraints are not
  • 8. violated and all possible NullPointerExceptions are reported (active if annotation-based null analysis is enabled in Java Compiler > Errors/Warnings preferences): This supports API designers to create better interfaces with stricter rules about what can be passed to and returned from an API:  The Eclipse Compiler for Java (with its new Java 8 type inference engine) has also been verified to successfully build major projects like JRE8, OpenJFX and Eclipse SDK (~250 projects).