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.
Have these IDE options for Java imports: - Separate Static Imports - (static imports are the last ones) - Separate Groups Steps: - have a unit test - add "import static org.junit.Assert.*;" somewhere among imports - invoke hint "Organize imports" -> static imports are not in the end of the list of imports Product Version: NetBeans IDE Dev (Build 20111110-c2a4208378f6) Java: 1.6.0_24; Java HotSpot(TM) 64-Bit Server VM 19.1-b02 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/486ea0c43b45
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/486ea0c43b45 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #204940: Static imports are not put to the configured place - fixed.
I'm having the exact same problem with NetBeans IDE Dev (Build 201401030002).
@svanimpe: In such case, you should reopen this issue otherwise it will stay resolved as FIXED... Thanks.
I'm also experiencing this behavior. None of the settings for imports seem to work when I right-click -> Fix Imports.
Please note that 'Fix Imports' does not modify order of the existing import statements. You have to use the 'Organize Imports' action that seems to work correctly in the current dev build.