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 "Java9/Features"

Line 14: Line 14:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Unicode support
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Unicode support
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#JRT/JDK9]]
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#JRT/JDK9]]
! width="180" align="center" style="background: none repeat scroll 0% 0% " | JMOD/JLink tools
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | JMOD/JLink tools
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Parser]] (Sasikanth)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Parser]] (Sasikanth)
Line 21: Line 21:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Compiler (Sasi/Stephan)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Compiler (Sasi/Stephan)
Line 28: Line 28:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA   
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Reconciler (Sasi)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Reconciler (Sasi)
Line 35: Line 35:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Error recovery (Sasi/Stephan)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Error recovery (Sasi/Stephan)
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |  
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " |  
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |  
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " |  
! width="180" align="center" style="background: none repeat scroll 0% 0% | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Code generation]] (Sasi)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Code generation]] (Sasi)
Line 49: Line 49:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |   
 
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(206, 242, 206);" |
 
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(206, 242, 206);" |
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Java Model]] (Jay)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Java Model]] (Jay)  
Line 56: Line 56:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |
 
! width="180" align="center" style="background: none repeat scroll 0% 0% green;" |
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" | Note: Hover etc.
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" | Note: Hover etc.
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" | Need to be investigated
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " |  
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#DOM AST]] (Manoj)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#DOM AST]] (Manoj)
Line 63: Line 63:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | AST Rewrite (Manoj)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | AST Rewrite (Manoj)
Line 70: Line 70:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Disassembler(Markus/Manoj)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Disassembler(Markus/Manoj)
Line 77: Line 77:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Formatter  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Formatter  
Line 84: Line 84:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Indexer (Manoj)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Indexer (Manoj)  
Line 91: Line 91:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Search (manoj)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Search (manoj)  
Line 98: Line 98:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Code select (Jay)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Code select (Jay)  
Line 105: Line 105:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Code completion (Manoj)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Code completion (Manoj)  
Line 112: Line 112:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" | in progress
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" | in progress
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#APT]] (Jay)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#APT]] (Jay)  
Line 119: Line 119:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | JSR 199 (Jay)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | JSR 199 (Jay)  
Line 126: Line 126:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Batch Compiler]] (Jay)  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | [[#Batch Compiler]] (Jay)  
Line 133: Line 133:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Editor (Noopur)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Editor (Noopur)
Line 142: Line 142:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
|-
 
|-
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Quick Assist (Noopur)
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | Quick Assist (Noopur)
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |   
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " |   
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |   
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " |   
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Quick Fix (Noopur)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Quick Fix (Noopur)
Line 154: Line 154:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Launch (Sarika)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Launch (Sarika)
Line 161: Line 161:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 
|-
 
|-
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Debug (Sarika)
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | Debug (Sarika)
Line 168: Line 168:
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
 
! width="180" align="center" style="background: none repeat scroll 0% 0% yellow;" |  
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! width="180" align="center" style="background: none repeat scroll 0% 0% grey " | NA
 +
|}
 +
 
 +
<br>
 +
 
 +
{| cellspacing="0" cellpadding="5" border="1" style="width: 300px; height: 25px;"
 
|-
 
|-
! width="180" align="center" style="background: none repeat scroll 0% 0% " | UI (Noopur)
+
! style="background: none repeat scroll 0% 0% green;" | &nbsp;&nbsp;
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
| Done
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
|-
! width="180" align="center" style="background: none repeat scroll 0% 0% " | NA
+
! style="background: none repeat scroll 0% 0% rgb(206, 242, 206);" | &nbsp;&nbsp;
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |  
+
| Substantially complete, with open items
! width="180" align="center" style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" |
+
|-
 +
! style="background: none repeat scroll 0% 0% yellow;" | &nbsp;&nbsp;
 +
| In Progress
 +
|-
 +
! style="background: none repeat scroll 0% 0% rgb(242, 206, 206);" | <br>
 +
| Not Started yet
 +
|-
 +
! style="background: none repeat scroll 0% 0% grey;" | <br>
 +
| Not in September 2017 plan
 +
|-
 +
! style="background: none repeat scroll 0% 0% " | NA
 +
| Not Applicable
 
|}
 
|}
 +
 
== Compiler/Builder ==
 
== Compiler/Builder ==
  

Revision as of 06:49, 25 July 2017

The goal of this wiki page is to list down all the high level features that are being considered in Eclipse IDE for Java 9. The features shall include all the essential ones, nice-to-have and migration related features if any. Also, wherever possible please categorize the features as to which Eclipse component it falls under and if there are any dependencies. For tracking purposes, it would be ideal to highlight what state a particular feature is in. Possible states are Study, Requirement gathering, design, implementation, testing etc.


Java 9 progress
Modules #Milling Project Coin Unicode support #JRT/JDK9 JMOD/JLink tools
#Parser (Sasikanth) NA NA
Compiler (Sasi/Stephan) July NA NA
Reconciler (Sasi) NA NA
Error recovery (Sasi/Stephan) NA NA NA
#Code generation (Sasi) NA
#Java Model (Jay) Note: Hover etc.
#DOM AST (Manoj) NA NA NA
AST Rewrite (Manoj) NA NA NA
Disassembler(Markus/Manoj) NA NA NA
Formatter NA NA NA
Indexer (Manoj) NA NA NA
Search (manoj) NA NA NA
Code select (Jay) NA NA NA
Code completion (Manoj) in progress in progress NA in progress NA
#APT (Jay) Under investigation NA NA NA NA
JSR 199 (Jay) Under investigation NA NA NA NA
#Batch Compiler (Jay) In progress NA NA NA
Editor (Noopur) NA NA
Quick Assist (Noopur) NA NA NA
Quick Fix (Noopur) NA NA NA
Launch (Sarika) NA NA NA
Debug (Sarika) NA NA NA NA


   Done
   Substantially complete, with open items
   In Progress

Not Started yet

Not in September 2017 plan
NA Not Applicable

Compiler/Builder

Java 9 EE and JRE 9 (80%)

The IDE should support JavaSE9 as a valid EE and allow mapping a valid JRE/JDK 9.

Jimage support (100%)

JDK/JRE 9 now ship with jimage files that contain all the platform resources. The resolved classpath of a project with JRE 9 will now contain a single entry representing the bootmodule.jimage. All JDT components should now be adjusted to work with the jimage format. Goal is to have all existing tests pass with a jigsaw build.

Parser support for module-info.java (100%)

Grammar needs to be improved to accommodate new syntax changes in a module-info.java. The parser should take care of rejecting invalid code in a module-info with proper error. For instance, annotations are not supported in a module-info. Similarly it is not allowed to have regular code in a module-info.

Classfile support (100%)

The Classfile, ClassfileReader and friends should recognize a module-info.class and load the classfile content into a module, in a form useful to the resolution.

Code generation (80%)

Compiler module-info.java need to be compiled into .class, in the format specified by the VM specification.

Disassembler support (0%)

The Disassembler should recognize a module-info.class and load the classfile content from the different sections - see JVMS9 4.7.25-27 [ https://bugs.eclipse.org/bugs/show_bug.cgi?id=508889]

Module resolution

The parser will take care of checking for incorrect syntax in a module-info.java. However, we still need a semantic analysis. Specifically, we might want to validate the following: That the exported packages and other entities specified actually exist in this module that all required modules are present in the current compilation context

Module System

Module system is eclipse's implementation of the module system specified in JEP 261. Module system is responsible for 1. keeping track of modules in the current compilation context. 2. Help LookupEnvironment in finding packages and Types according to the module dependencies and readability.

Batch compiler (50%)

JEP 261 specifies several new command line arguments. These need to be supported in ECJ. Notably -modulepath (shortly -mp) and -addexport.

JSR 199 support

(https://bugs.eclipse.org/bugs/show_bug.cgi?id=479483)

APT support

Code Assist (90%)

Code Completion (80%) - code completion support in, but with some new bugs (maybe introduced with the newer code ) - the top level bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=480612 Code Selection (100%) (https://bugs.eclipse.org/bugs/show_bug.cgi?id=510339)

Java Model

A big open question is where modules fits in the current Java model hierarchy. One way to go forward is to consider modules to be the following: 1. A kind of a package fragment root 2. A classpath location (IClasspathEntry, FileSystem.Classpath, ClasspathLocation etc.) This would mean that there could be multiple modules in a single Java projects. This is an open question that needs to be addressed (https://bugs.eclipse.org/bugs/show_bug.cgi?id=479483)

DOM AST (100%)

Ref https://bugs.eclipse.org/bugs/show_bug.cgi?id=487780

Milling Project Coin (100%)

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=495954

UI

Syntax highlighting

Editor should highlight the keywords in a module-info.java when opened in a Java editor.

Code completion

Code completion should work on completion of packages, types and module names in a module-info.java

Quick assist/fix

What kind of assistance do we want to provide here?

Classfile viewer

Being able to load/view module-info.class in the Classfile viewer.

Export Java project into JMOD?

A Java project with a module or a module in a Java project can be exported to a JMOD. It is still not clear whether this format is open for use by others.

Export Java projects into Jimage?

User should be able to select multiple modules in the workspace and export it to a jimage. It is still not clear whether this format is open for use by others.

Modules in the package explorer.

It needs to be decided how we want to represent the module in the package explorer.


Migration path:

Convert a given Java project into module

Convert a source path into module

Generate module-info from MANIFEST?

Convert a PDE bundle into module?

Back to the top