Community
Participate
Working Groups
20061016 Code assist should suggest enum values when possible. In the following code, the user completes an method argument that needs to be of type 'enum E'. The top suggestion should be: E.E1, E.E2, E.E3... For example they should be: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD... ---- package p; public class A { enum E { E1, E2, E3 } public void foo(E e) { } public void bar() { foo(E| code assist here: Expected: E.E1, E.E2, E.E3 } } --- example 2 @Target(| code assist here: Expected: ElementType.TYPE, ElementType.FIELD... public @interface K { }
Created attachment 96243 [details] Proposed fix
Created attachment 96244 [details] Better fix
Released for 3.4M7. Tests added CompletionTests_1_5#test0364() -> test0366() Tests updated CompletionTests_1_5#test0136() -> test0142(), test0208(), test0265()
Verified for 3.4M7 using I20080427-2000.