Bug 129142

Summary: VariableDeclarator isn't recovered by statments recovery
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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