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 26991 - an "import My_object" statement is stated as false
Summary: an "import My_object" statement is stated as false
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-03 20:18 UTC by Bart Lamot
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Lamot 2002-09-03 20:18:21 UTC
Because there is no dot (or package) in the
statement "import My_object"  the IDE notes this
line as if it was wrong.
Comment 1 Jan Lahoda 2002-09-04 09:04:14 UTC
The parsing of code is done in java module.
Comment 2 Svata Dedic 2002-09-06 13:08:03 UTC
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.