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 236446 - [Use Package Imports] duplicates imports
Summary: [Use Package Imports] duplicates imports
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 08:16 UTC by ssazonov
Modified: 2013-11-19 09:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
step_00 (92.11 KB, image/png)
2013-09-27 08:16 UTC, ssazonov
Details
step_01 (10.00 KB, image/png)
2013-09-27 08:17 UTC, ssazonov
Details
step_02 (11.80 KB, image/png)
2013-09-27 08:17 UTC, ssazonov
Details
step_03 (24.86 KB, image/png)
2013-09-27 08:17 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2013-09-27 08:16:21 UTC
1. Create new java class

2. Go to Tools > Options > Formatting > {Java, Imports} and set it according the step_00 attached image than press Ok.

3. into the body of class type "HashMap<Integer, String> nodes = new HashMa" (see step_01)

4. Using Ctrl+Space invoke code completion, the result is shown on step_02

5. Type "Integer"

>> while you are typing "Integer" new duplicate imports are added (see step_03)

Product Version: NetBeans IDE 7.4 RC2 (Build 201309252201)
Java: 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
Comment 1 ssazonov 2013-09-27 08:16:48 UTC
Created attachment 140531 [details]
step_00
Comment 2 ssazonov 2013-09-27 08:17:04 UTC
Created attachment 140532 [details]
step_01
Comment 3 ssazonov 2013-09-27 08:17:18 UTC
Created attachment 140533 [details]
step_02
Comment 4 ssazonov 2013-09-27 08:17:33 UTC
Created attachment 140534 [details]
step_03
Comment 5 Dusan Balek 2013-10-01 12:22:20 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c96080c28f1b
Comment 6 Quality Engineering 2013-10-03 01:38:20 UTC
Integrated into 'main-silver', will be available in build *201310030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/c96080c28f1b
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #236446: [Use Package Imports] duplicates imports - fixed.
Comment 7 Jiri Prox 2013-11-13 12:19:32 UTC
verified in the trunk
Comment 8 Dusan Balek 2013-11-14 08:24:46 UTC
Integrated into release74 branch.

http://hg.netbeans.org/releases/rev/a728bbb1cb3e
Comment 9 Quality Engineering 2013-11-14 14:33:24 UTC
Integrated into 'releases/release74', will be available in build *201311141216* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/a728bbb1cb3e
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #236446: [Use Package Imports] duplicates imports - fixed.