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.
The "Fix Imports" feature does not support static imports, i.e. importing static class fields to be referenced directly. (e.g. import static ru.ksorokin.kobold.util.string.StringConstants.CRLF; ) It would be nice to have keeping in mind java 1.5 compliance.
Just to add to this, the current Fix Imports in NetBeans 5.0 Beta 2, static imports are imported, but without the "import static" (it just has "import"). If there is already an "import static" for the import, then that is ignored and the same import with just "import" is added. e.g. import static ru.ksorokin.kobold.util.string.StringConstants.CRLF; becomes import static ru.ksorokin.kobold.util.string.StringConstants.CRLF; import ru.ksorokin.kobold.util.string.StringConstants.CRLF;
Fix Imports in NB 5.0 does not handle static imports. Adding of imports like import static ru.ksorokin.kobold.util.string.StringConstants.CRLF; is not supported and this import should not be generated by the action. If you have a test case for which this occurs, file a new issue and attach sources allowing to reproduce it, please.
*** This issue has been marked as a duplicate of 89258 ***