Bug 176725

Summary: [recovery] member value array initializer aren;t correctly recovered
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.3   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description David Audel CLA 2007-03-08 11:49:10 EST
I20070306-1200

public class X {
  #
  @AnAnnotation({var})
  public void foo() {
  }
}

This code produce the following recovered ast

public class X {
  {
  }
  public void foo() {
  }
}

The { of the member value array initializer should not be recovered as an initializer
Comment 1 David Audel CLA 2007-03-16 06:58:52 EDT
Created attachment 61077 [details]
Proposed fix
Comment 2 David Audel CLA 2007-03-16 07:09:07 EDT
Released for 3.3M6

Tests added
   AnnotationDietRecoveryTest#test0011()
   AnnotationCompletionParserTest#test0117() -> test0129()
Comment 3 Maxime Daniel CLA 2007-03-20 10:31:47 EDT
Verified for 3.3 M6 using build I20070320-0010.

(Compared the behavior of ASTView on the provided test case for M5 and I20070320-0010.)