Bug 129142 - VariableDeclarator isn't recovered by statments recovery
Summary: VariableDeclarator isn't recovered by statments recovery
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 07:18 EST by David Audel CLA
Modified: 2006-03-28 10:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2006-02-23 07:18:21 EST
I20060221-1300

class X {
  void foo() {
    int int;
  }
}

The error is: Syntax error on token "int", invalid VariableDeclarator

The recovered AST is 
class X {
  void foo() {
  }
}

The last 'int' should be replaced with an 'Identifier' by the statements recovery.
Comment 1 David Audel CLA 2006-02-23 08:23:05 EST
Fixed and test added
  DietRecoveryTest#test114()

Added the mapping VariableDeclarator -> 'Identifier' in grammar
Comment 2 Olivier Thomann CLA 2006-03-28 10:18:15 EST
Verified using I20060328-0010 for 3.2M6