Skip to main content
Jump to: navigation, search

Difference between revisions of "JDT Core/Plan/4.8/JEP325"

(DOM support)
Line 1: Line 1:
 
= Planning page for JDT Implementation of Switch Expressions (JEP 325) for Java 11 =
 
= Planning page for JDT Implementation of Switch Expressions (JEP 325) for Java 11 =
  
Main tracking bug: {{bug|531714}}
+
Main tracking bug: {{bug|542557}}
  
 
== Compiler changes ==
 
== Compiler changes ==
Changes regarding the compiler:  
+
Changes regarding the compiler: {{bug|542557}}
 +
 
 
=== Grammar changes ===
 
=== Grammar changes ===
 
Switch Expression grammar changes - add bug number
 
Switch Expression grammar changes - add bug number
Line 11: Line 12:
  
 
== Compiler AST Creation ==
 
== Compiler AST Creation ==
Tied with parsing - expected to be done 3-5 days the basic structure - 2d remaining
+
Tied with parsing - dkne
 +
 
 
=== Flow analysis changes ===
 
=== Flow analysis changes ===
 
will have flow analysis  changes  - in progress - 3 days.
 
will have flow analysis  changes  - in progress - 3 days.
Line 25: Line 27:
  
 
== Java Search support ==
 
== Java Search support ==
slight change expected - 2d
+
slight change expected - 2d {{bug|542559}}
  
 
== DOM support ==
 
== DOM support ==
 
ast changes expected - 1wk - can give an estimate after the compiler ast structure is done - initial discussion done
 
ast changes expected - 1wk - can give an estimate after the compiler ast structure is done - initial discussion done
 +
{{bug|542558}}
  
 
== Content Assist support ==
 
== Content Assist support ==
* additional place the content assist be applicable - 5 days (opportunistic)
+
* additional place the content assist be applicable - 5 days ({{bug|542560}}
 +
 
 +
== Code Select support ==
 +
* additional place the content assist be applicable - 5 days ({{bug|542561}}
  
 
== UI Changes ==
 
== UI Changes ==
Line 45: Line 51:
 
=== Quick fixes ===
 
=== Quick fixes ===
 
* convert to a switch statement ( 3 DAYS? jdt.ui to comment)
 
* convert to a switch statement ( 3 DAYS? jdt.ui to comment)
* coalesce two or more case statements to comma separated since coase statements - 4 ays> jdt.ui ? opportunistic
+
* coalesce two or more case statements to comma separated case label statements - 4 ays> jdt.ui ? opportunistic
  
 
=== Code templates ===
 
=== Code templates ===

Revision as of 00:34, 9 December 2018

Planning page for JDT Implementation of Switch Expressions (JEP 325) for Java 11

Main tracking bug: bug 542557

Compiler changes

Changes regarding the compiler: bug 542557

Grammar changes

Switch Expression grammar changes - add bug number This would be a major grammar change effort/time estimate for grammar - Currently here - need to rewrite the grammar - est : done

Compiler AST Creation

Tied with parsing - dkne

Flow analysis changes

will have flow analysis changes - in progress - 3 days.

Type checking

Type inference will have to be dom since switch may be an expression - <=5 days?

Error reports

  • new error reports. (2 days - in parallel with flow analysis ?) - in progress in parallel

Code generation

Addressing the breaks without label but with expressions and implicit break labels for switch label expressions - 5 days

Java Search support

slight change expected - 2d bug 542559

DOM support

ast changes expected - 1wk - can give an estimate after the compiler ast structure is done - initial discussion done bug 542558

Content Assist support

  • additional place the content assist be applicable - 5 days (bug 542560

Code Select support

  • additional place the content assist be applicable - 5 days (bug 542561

UI Changes

  • Switch ASTs to JLS11 (generic - 1d)

Code hover

  • Show inferred type of variable - no change expected

Preferences

  • Allow JDT UI to target Java 11 in Compiler Preferences - generic (1d in parallel)

Quick fixes

  • convert to a switch statement ( 3 DAYS? jdt.ui to comment)
  • coalesce two or more case statements to comma separated case label statements - 4 ays> jdt.ui ? opportunistic

Code templates

  • add switch in templates - 1d

JDT Debug

  • Expected to have an impact - especially breakpoints - 1w approx

Back to the top