Community
Participate
Working Groups
20060328 from bug 132207: ----- package pack; public @interface MyAnnotation { NeedsImportEnum value(); boolean value2() default false; } ------ package pack; public enum NeedsImportEnum { HELLO; } ----- package other; public class A { @MyAnnotation(N |code assist public void hello() { } } Code assist should suggest NeedsImportEnum. Quick fix uses the code assist infrastructure to evaluate the types required. It works if MyAnnotation only has one attribute (value).
Created attachment 38919 [details] Proposed fix
Philippe - Do you want this fix for 3.2RC2 ? With this fix, the behavior with the test case of the bug is the same as if MyAnnotation would have only one member value pair named 'value'.
+1 for 3.2RC2
Fix released and test added CompletionTests_1_5#test0285()
Created attachment 39285 [details] Better fix Performances with the previous fix are very bad. This new fix correct the original problem and the performance problem.
Better fix released.
Verified with I20060427-1600 for 3.2RC2. Get the right proposal, only if the import for MyAnnotation is there in the A class.