Bug 157403 - NPE when trying to get the ast for a class with boggus annotations
Summary: NPE when trying to get the ast for a class with boggus annotations
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-14 19:39 EDT by Olivier Thomann CLA
Modified: 2006-09-18 11:41 EDT (History)
0 users

See Also:


Attachments

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