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.
public class CrazyCodeCompletion { public void method(Object[] args) { } public void method(Double d) { } public void anotherMethod() { method(new D); } } Hitting code completion right after new D will bring Object[] as a suggestion. Replacing Object[] with any array, such as Integer[], will produce the same result. Replacing D with any other letter will keep the array class in the suggestions list. However, Double isn't shown for any other letter but D, so this is an inconsistency.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/5c90f35329fb
Integrated into 'main-golden', will be available in build *201003260201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5c90f35329fb User: Dusan Balek <dbalek@netbeans.org> Log: Issue #182713: Code completion thinks all array names start with any letter - fixed.