Community
Participate
Working Groups
Statements like super.@<ctrl-space> making suggestions, which are giving immediate compilation errors. Similarly for reference expressions.
Created attachment 233677 [details] Patch for the fix Patch for the fix
Please see that this breaks completion in the example below: // --- import java.lang.annotation.ElementType; import java.lang.annotation.Target; interface I { void foo(); } public class X { static void goo() { } I i = X::<@Mark| String> goo; } @Target(ElementType.TYPE_USE) @interface Marker { }
(In reply to comment #0) > Statements like super.@<ctrl-space> making suggestions, which are giving > immediate compilation errors. > Similarly for reference expressions. I am inclined to think we should close this issue as is as INVALID. If the programmer has typed @ in the first place in a location where annotations cannot legally occur and then attempts to complete it is not unreasonable to suggest annotations. There is no valid Java construct other than annotations for which @ is a prefix. Anirban, if you agree, we can close.
Resolving per comment#3