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 206121 - Imports not organized correctly
Summary: Imports not organized correctly
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 08:01 UTC by Tomas Mysik
Modified: 2012-04-13 09:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of configuration (84.56 KB, image/png)
2011-12-08 08:01 UTC, Tomas Mysik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2011-12-08 08:01:49 UTC
Created attachment 113944 [details]
Screen shot of configuration

Have a look at the attached screenshot for my Organize Hints configuration.
Then have a unit test with these imports:

---- %< ----
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import org.netbeans.junit.NbTestCase;
import static org.junit.Assert.*;
---- %< ----

Hint for organizing imports appears but it shouldn't I guess.

Product Version: NetBeans IDE 7.1 (Build 201112051121)
Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02
System: Linux version 3.0.0-13-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 1 Tomas Mysik 2011-12-08 08:02:53 UTC
If I invoke the hint, the result is:

---- %< ----
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import static org.junit.Assert.*;
import org.netbeans.junit.NbTestCase;
---- %< ----
Comment 2 Dusan Balek 2012-04-13 09:58:07 UTC
Should be fixed in the current dev build.