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.

Bug 182713 - [69cat] Code completion thinks all array names start with any letter
Summary: [69cat] Code completion thinks all array names start with any letter
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-24 20:48 UTC by misterm
Modified: 2010-03-26 05:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2010-03-24 20:48:58 UTC
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.
Comment 1 Dusan Balek 2010-03-25 09:47:53 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/5c90f35329fb
Comment 2 Quality Engineering 2010-03-26 05:27:42 UTC
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.