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 61302

Summary: CC doesn't go away sometimes
Product: editor Reporter: athompson <athompson>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description athompson 2005-07-22 17:53:30 UTC
jdk 1.5
linux
daily 21 july 2005

enter this code:

public void subscribe(Object source, Class listenerInterface, Object listener)
throws IllegalArgumentException {
  synchronized (eventSources) {
    Map listenerInterfaces = (Map)eventSources.get(source);
    if (listenerIn|)
  }
}

the cursor is on the line with the 'if' statement, indicated by the '|'.

invoking CC here (ctrl-space) shows what it should, but if you select
'listenerInterfaces' and press ENTER, the CC box doesn't go away. the box does
narrow down to just the 'listenerInterfaces' entry, but it takes a second ENTER
to make it go away.
Comment 1 Roman Strobl 2005-07-25 10:08:00 UTC
I am not able to reproduce the issue on 200507191800 with WinXP and 1.5.0_04.
One enter is enough for the code completion to get closed. Are you able to
reproduce it on latest daily build? Thanks!
Comment 2 athompson 2005-07-25 12:05:01 UTC
still happens. i haven't done an exhaustive test, but it's probably has to do
with one word being the root of another word, such as 'listenerInterface' and
'listenerInterfaces'. the code that inserts common roots may be to blame. is
there any way to turn it off?
Comment 3 Jan Pokorsky 2005-09-08 14:55:36 UTC
It is reproducible. Most likely duplicate of issue #63637.

*** This issue has been marked as a duplicate of 63637 ***