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.
Because there is no dot (or package) in the statement "import My_object" the IDE notes this line as if it was wrong.
The parsing of code is done in java module.
The parser which analyzes your source code is JDK-1.4 compliant: javac from JDK-1.4 rejects imports from the unnamed (default) package ("import FooClass;") into other package's - the explanation is quite lengthy, the short form is that it does not satisfy the exact wording of Java Language spec. But you can ignore parser's warning, the underline is only informational. Please do not use classes from the unnamed/default package outside the package at all, if possible; you will save yourself problems with J2SE-1.4 and later releases.