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 221026 - Annoying completion auto-selection
Summary: Annoying completion auto-selection
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 223854 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-29 14:00 UTC by Jaroslav Tulach
Modified: 2012-12-17 08:03 UTC (History)
2 users (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 Jaroslav Tulach 2012-10-29 14:00:09 UTC
I was just typing the code below. Position caret after the dot before the semicolon. Press Ctrl-Space to see code completion options. Type "get(" - in my case the text after the dot changes to "equals(in)" which is quite annoying. This is not the only code that leads to such misbehavior. Happens to me relatively frequently, about ten times a day.

package org.netbeans.core.startup;

import java.util.concurrent.CountDownLatch;
import org.openide.util.lookup.ServiceProvider;

@ServiceProvider(service=Runnable.class, path="WarmUp")
public class WarmUpSupportTask implements Runnable {
    @Override
    public void run() {
        int timeOut = Integer.getInteger("warmup.delay", -1);
        if (timeOut > 0) {
            ClassLoader l = Thread.currentThread().getContextClassLoader();
            Class<?> c = l.loadClass(WarmUpSupportTest.class.getName());
            CountDownLatch in = c.getDeclaredField("in").;
        }
    }
}
Comment 1 Dusan Balek 2012-11-01 12:37:46 UTC
Caused by a slow remote Javadoc loading.

Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/7a893e08f211
Comment 2 Quality Engineering 2012-11-02 03:29:32 UTC
Integrated into 'main-golden', will be available in build *201211020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7a893e08f211
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #221026: Annoying completion auto-selection - fixed.
Comment 3 Dusan Balek 2012-11-02 13:24:29 UTC
release73_beta2: http://hg.netbeans.org/releases/rev/dda3d1074e3e
Comment 4 Jiri Prox 2012-11-02 15:57:12 UTC
verified in trunk
Comment 5 Quality Engineering 2012-11-02 17:23:13 UTC
Integrated into 'releases', will be available in build *201211021451* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/dda3d1074e3e
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #221026: Annoying completion auto-selection - fixed.
Comment 6 Dusan Balek 2012-12-17 08:03:26 UTC
*** Bug 223854 has been marked as a duplicate of this bug. ***