Bug 157403

Summary: NPE when trying to get the ast for a class with boggus annotations
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2006-09-14 19:39:50 EDT
Using latest, the following compilation unit cannot be opened in the ASTView with bindings because of the boggus annotation.

@interface Ann {
  int foo();
}
@Ann(foo = bar())
public class X {
   public static int bar() { return 0; }
}
Comment 1 Olivier Thomann CLA 2006-09-14 22:08:14 EDT
Released for 3.3M2.
Regression test added in org.eclipse.jdt.core.tests.dom.ASTConverter15Test#test0228.
Comment 2 Maxime Daniel CLA 2006-09-18 11:41:04 EDT
Verified for 3.3 M2 using build I20060918-0010.
I used the provided regression test case on version v_713 (3.3 M2) and 20060913, and it respectively passes and fails with an NPE.