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 82843 - Auto import doesn't work.
Summary: Auto import doesn't work.
Status: RESOLVED DUPLICATE of bug 82153
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-16 22:29 UTC by Jun Qian
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HelloWorld Project (18.29 KB, application/octet-stream)
2006-08-16 22:31 UTC, Jun Qian
Details
Screenshot of auto import failure. (73.72 KB, application/octet-stream)
2006-08-16 22:32 UTC, Jun Qian
Details
Java EE 5 Tools Bundle Installer Screen (134.10 KB, application/octet-stream)
2006-08-17 18:37 UTC, Jun Qian
Details
Import auto complete doesn't give me all the classes in java.beans package. (22.94 KB, application/octet-stream)
2006-08-17 18:38 UTC, Jun Qian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Qian 2006-08-16 22:29:20 UTC
The build is NetBeans 5.5 beta 2.

Open the attached HelloWorld project,
Open the Person.java in com.sun.demo.model in the Source Packages,
Try fixing import by pressing Alt-Shift-F,
Auto import doesn't work! See attachment for a screenshot.
Comment 1 Jun Qian 2006-08-16 22:31:34 UTC
Created attachment 33005 [details]
HelloWorld Project
Comment 2 Jun Qian 2006-08-16 22:32:16 UTC
Created attachment 33006 [details]
Screenshot of auto import failure.
Comment 3 Jun Qian 2006-08-17 04:25:54 UTC
I am not sure which subcomponent this issue belongs to. 
Comment 4 Jiri Prox 2006-08-17 10:25:06 UTC
Can you provide further info, please?

- if the imports are added manualy are they annotated as error ('connot find
package....') ?
- is the code compilable if the imports are added manualy?
- did you used installer or just unpacked the zip archive when you downloaded NB
5.5 beta2?
Comment 5 Jiri Prox 2006-08-17 12:47:45 UTC
And another two questions:
Does it behave like this from the moment you've installed NB beta2 or it just
got broken later?

What version of JDK do you use?
Comment 6 Jun Qian 2006-08-17 18:32:49 UTC
I actually used the installer for NetBeans Enterprise Pack Beta 2 RC1. From the
installer, it says the IDE version is Beta 2. (See snapshot)

If I import manually, it doesn't have annotation error and it compiles. However,
the import auto complete doesn't help. (See snapshot)

I pretty much have this error right after installation.

My JDK version is 1.5.0_06.
Comment 7 Jun Qian 2006-08-17 18:37:50 UTC
Created attachment 33032 [details]
Java EE 5 Tools Bundle Installer Screen
Comment 8 Jun Qian 2006-08-17 18:38:49 UTC
Created attachment 33033 [details]
Import auto complete doesn't give me all the classes in java.beans package.
Comment 9 Tomas Zezula 2006-08-18 08:57:58 UTC
When the project compiles and there are no error marks, it implies that the
project reports correct classpaths. The same classpaths are passed to the Ant to
build the project and to the javac to report diagnostics.
Comment 10 Jan Becicka 2006-08-21 10:30:34 UTC

*** This issue has been marked as a duplicate of 82153 ***
Comment 11 Quality Engineering 2007-09-20 10:06:23 UTC
Reorganization of java component