Community
Participate
Working Groups
Using latest, try to use code assist at the different locations: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(value=RetentionPolicy.SOURCE) @Target({<code assist here> El<code assist here>ementType.TYPE, ElementType.PACKAGE}) public @interface Annot { int id(); Class c() default Object.class; } Also when you have: import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(value=RetentionPolicy.SOURCE) @Target(<code assist here>) public @interface Annot { int id(); Class c() default Object.class; } give only value, then after adding a '=', there is no more completions. I would expect to be able to code assist on type names inside a member pair value.
*** Bug 105689 has been marked as a duplicate of this bug. ***
I'm just voting for this issue running into similar problem of content assist not working when doing something like: @Target({ElementType.PARAMETER, ElementType.FIELD}) Content assis works fine when completing ElementType.PARAMETER but no more content assist after the comma for ElementType.FIELD. Mike
I do not reproduce the problem with build I20080409-1425. The problem is fixed in a previous build. I close this bug as WORKSFORME.
Verified for 3.4 M7 - this issue was fixed in a previous build.