Summary: | [1.5][compiler] NPE compiling code with unknown annotations | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | critical | ||||||
Priority: | P3 | CC: | daniel_megert | ||||
Version: | 3.1 | ||||||
Target Milestone: | 3.1 RC3 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2005-06-10 16:33:20 EDT
Smaller test case: public class X { public foo(@Deprecated() String s) { } } You need a method for which the binding is null and a parameter annotation. Created attachment 22839 [details]
Apply on HEAD
With this patch, the error is:
----------
1. ERROR in d:\tests_sources\X.java
(at line 3)
public foo(@Deprecated() String s) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Return type for the method is missing
----------
1 problem (1 error)
+1 for RC3. Dani - pls cast a vote for it. You know how exceptions in compiler can damage the editing experience... <g> +1 for 3.1 RC3. Added AnnotationTest#test167. Made similar fix to proposed, but extracted the null check out of the loop to avoid penalizing standard scenario. Fixed Verified using N20050616-0010 + JDT/Core HEAD |