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 177702 - [68cat] Code completion for import of generic class adds extra (incorrect) text
Summary: [68cat] Code completion for import of generic class adds extra (incorrect) text
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 177431 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-26 16:50 UTC by neilg
Modified: 2009-12-02 06:33 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 neilg 2009-11-26 16:50:13 UTC
Using dev build 200911251400.

In a Java source file I type 

import java.util.Lis

then hit ctrl-space for completion and choose List from the offered choices. The output should be

import java.util.List;

on one line but is in fact spread across several lines:

import java.util.List

  import java.util.List;
<Object>
Comment 1 David Strupl 2009-11-27 03:21:51 UTC
Dusan, can you please check this? BTW does it happen only in trunk build or is the problem present in 6.8 RC build? I have marked it as happening in "6.9", please change to 6.8 if it happens there as well.
Comment 2 Max Sauer 2009-11-27 03:45:57 UTC
Might be related / duplicate of #177431.
Comment 3 Dusan Balek 2009-11-27 05:43:48 UTC
Unfortunately, the problem present also in 6.8 RC1 build. I'm working on fix.
Comment 4 Jiri Prox 2009-11-27 06:00:00 UTC
This should be fixed in rc1, it's quite annoying bug
Comment 5 David Strupl 2009-11-27 06:27:10 UTC
The steps to integrate into 6.8 RC2 are here:
http://wiki.netbeans.org/NB68HighResistance
Comment 6 Dusan Balek 2009-11-27 06:27:13 UTC
*** Bug 177431 has been marked as a duplicate of this bug. ***
Comment 7 Dusan Balek 2009-11-27 06:33:17 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/1117e8da37d7
Comment 8 Marian Mirilovic 2009-11-27 06:42:47 UTC
I would vote for fixing this into RC2, so this is not a stopper for RC1 - honestly number of people those are writing imports manually is very low I think
Comment 9 matthies 2009-11-27 06:52:42 UTC
@Marian: It also happens for static imports, and these have to be entered manually.
Comment 10 neilg 2009-11-27 07:13:56 UTC
I discovered this issue while entering a generic static import. If it's not fixed, then entering static imports becomes very difficult.
Comment 11 Marian Mirilovic 2009-11-27 07:37:31 UTC
As I've said earlier : we'll fix it for Rc2, but this one is not stopper for RC1 (almost published) .
Comment 12 Quality Engineering 2009-11-28 03:21:43 UTC
Integrated into 'main-golden', will be available in build *200911280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1117e8da37d7
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #177702: Code completion for import of generic class adds extra (incorrect) text - fixed.
Comment 13 Jan Lahoda 2009-11-29 11:47:53 UTC
The patch seems to OK to me.
Comment 14 Jiri Prox 2009-12-01 01:38:45 UTC
verified in trunk
Comment 15 Dusan Balek 2009-12-01 03:13:14 UTC
Integrated in release68 branch.

http://hg.netbeans.org/release68/rev/337686352fbb
Comment 16 Jiri Prox 2009-12-02 06:33:15 UTC
verified