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.
with settings * Use Single Class Imports |X| Class Count To Use Star Import 31 | | Member Count To Use Static Star Import 2 Import Layout: |X| Separate Static Imports | | java | | javax | | <all other imports> | | org | | com.raelity |X| <all other imports> |X| com.raelity |X| Separate Groups The list of imports at the end produce the hint "not ... code style rules". Executing OrganizeImports removes the marked (<<<) line (it does get rid of the hint). import java.awt.CardLayout; import java.awt.Component; import java.util.logging.Level; import java.util.logging.SimpleFormatter; import java.util.logging.XMLFormatter; import org.netbeans.validation.api.builtin.stringvalidation.StringValidators; import org.netbeans.validation.api.ui.swing.SwingValidationGroup; import org.netbeans.validation.api.ui.swing.ValidationPanel; import com.raelity.logman.ConfigFormatter.Flag; import com.raelity.logman.LogUtil; import com.raelity.logman.ops.HandlerProps; import com.raelity.logman.ops.LoggingProps; import static com.raelity.logman.ops.LoggingProps.*; <<<<<<<<<<<<<<<<<<
Product Version: NetBeans IDE 7.1 RC2 (Build 201111302200) Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Unfortunately, I cannot reproduce the problem in the current dev build. Could you please create a simple test case and attach it to the issue? Thanks.
Project attached - open the project LogMan There are some unresolved projects. Ignore them. - open com/raelity/logman/ui/HandlerFormatter - organize imports Observe the described problem
Created attachment 114588 [details] project with organize imports problem
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/a8856908cdcb
Can/should this be "71patch1-candidate" ?
(In reply to comment #6) > Can/should this be "71patch1-candidate" ? Sure, could you please verify the fix in trunk is working and it didn't cause any regression (mark as VERIFIED), please ? Thanks in advance.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a8856908cdcb User: Dusan Balek <dbalek@netbeans.org> Log: Issue #206218: OrganizeImports removes "import static xxx.*" creating syntax errors - fixed.
Integrated into release71_fixes. http://hg.netbeans.org/releases/rev/f789519f2088
verified in patch1