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.
Product Version: NetBeans IDE 6.8 RC1 (Build 200911252200) Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Linux version 2.6.24-23-generic running on i386; UTF-8; en_US (nb) Semicolon is inserted at wrong position when using CC to complete following code: Input i = new Input("/searchtext/test.txt"); SearchEngine engine = new AutomatonSearchEngine(); engine.prepare(new String[]{"abc","abd"}); ((AutomatonSearchEngine)engine). // <------- here invoke CC Result search = engine.search(i); After selecting method returning void in the marked position the code is completed, but the semicolon is inserted at wrong place Input i = new Input("/searchtext/test.txt"); SearchEngine engine = new AutomatonSearchEngine(); engine.prepare(new String[]{"abc","abd"}); ((AutomatonSearchEngine)engine).traverseAllNodes() Result; search = engine.search(i);
Honzo, please have a look, thanks.
A sample that uses only standard classes: Runnable r = null; ((CharSequence) r). String str = ""; The trees are pretty broken in this case ('String' is a name in member select '((CharSequence) r).String', and assignment 'str = "";'). Probably simplest would be to change the CC to handle these broken trees more gracefully (alternatively, the error recovery could be improved, but that could be quite difficult).
*** Bug 189399 has been marked as a duplicate of this bug. ***
*** Bug 190442 has been marked as a duplicate of this bug. ***
*** Bug 196614 has been marked as a duplicate of this bug. ***
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/0a374763a147
*** Bug 196752 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201103220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/0a374763a147 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #177657: Semicolon inserted at wrong position - fixed.