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 87560 - CC does not work correctly in initializers
Summary: CC does not work correctly in initializers
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 90767 (view as bug list)
Depends on:
Blocks: 90767
  Show dependency tree
 
Reported: 2006-10-19 19:22 UTC by athompson
Modified: 2007-11-05 13:38 UTC (History)
0 users

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 athompson 2006-10-19 19:22:31 UTC
enter this in a class:

{ // instance initializer
  String myString = new String();
  myString.|    <-- cursor here
}

try to invove CC after the 'myString.'.  it does not have the methods for 
String.  the variable name 'myString' also does not show up in CC.

this also affects static initializers:

static { // static initializer
  String myString = new String();
  myString.|    <-- cursor here
}
Comment 1 Dusan Balek 2006-10-26 09:20:38 UTC
Fixed.

Checking in JavaCompletionProvider.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JavaCompletionProvider.java,v
 <--  JavaCompletionProvider.java
new revision: 1.30; previous revision: 1.29
done
Comment 2 athompson 2006-10-27 13:16:33 UTC
thanks! any chance on getting this backported to 5.5?
Comment 3 athompson 2006-11-12 06:26:29 UTC
new java stuff is quite promising looking!
Comment 4 Jiri Prox 2006-12-07 17:12:23 UTC
*** Issue 90767 has been marked as a duplicate of this issue. ***