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

JDT Core/Plan/4.8/JEP325

< JDT Core‎ | Plan/4.8
Revision as of 02:53, 12 February 2019 by Manoj.palat.in.ibm.com (Talk | contribs) (Java Search support)

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


536055.jpg

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 Additional minor but required grammar change was done to include parenthesis.

Compiler AST Creation

Tied with parsing - done

Type Inference

Type inference since switch expression may be an expression - bug 542871 - Done

Flow analysis changes

will have flow analysis changes - bug 542707 - done

Error reports

  • new error reports. (0 days - in parallel with flow analysis) - done

Code generation

Addressing the breaks without label but with expressions and implicit break labels for switch label expressions -0d bug 542838 - done

Java Search support

slight change expected - 0d bug 542559 - done Additional issue found in bug 544304 - done

DOM support

ast changes expected - 1wk -- 1st patch review done, rework done [2nd patch review also done - rework in progress] 1 wk - Rewrite, tests and other second round of rework bug 542558

Content Assist support

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

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
  • see bug 543665

Code templates

  • add switch in templates - 1d

JDT Debug

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

Back to the top