This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Consider the following code fragment: public abstract class GenericsAutocompletion<T extends Collection> { abstract void abstractMethod(); public static void method(GenericsAutocompletion<? super List> arg) { } public static void main(String[] args) { method(new |); } } Invoke code completion (Ctrl-Space) after new operator at '|' symbol and press Enter, the line becomes like this: method(new GenericsAutocompletion<List>); The problem is the selection in the list is incorrect. It is AbstractMethodError, not the list of super to List. And code completion doesn't go further to abstractMethod implementation. This code is quite common in JavaFX with EventHandlers so this is highly visible NetBeans issue.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/637806a8e939
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/637806a8e939 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #200831: Code completion doesn't work for <? super Class> generics - fixed.