Bug 176725 - [recovery] member value array initializer aren;t correctly recovered
Summary: [recovery] member value array initializer aren;t correctly recovered
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 11:49 EST by David Audel CLA
Modified: 2007-03-20 10:31 EDT (History)
0 users

See Also:


Attachments
Proposed fix (19.22 KB, patch)
2007-03-16 06:58 EDT, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.)