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.
Core java classes seem to not be found by code assist. This issue is not present in 6.7RC2. Look at the following (new "java application" created in 6.7RC3). package javaapplication1; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { PrintStream out = System.out; } } NB correctly finds that PrintStream is unknown. Clicking the little light bulb to fix the problem only gives the option "Create class PrintStream .." I have this issue not only with core java classes but any classes including classes inside the same package. Sometimes the import is marked as invalid, but the code compiles both through NB and external ant. Further if I manually type "import java." +ctrl+space I get "No Options" if I then enter "io" I get the options I would expect. As a further note probably related to this (I can log this as a separate issue if you want me to). When I have two projects A&B where B has a dependency on A and this is set up as a dependency on the Project not to a jar, it only finds a subset of classes in the jar. Again both projects compile just fine through both NB and externally. Removing the project dependency and instead make the dependency to the jar seem to fix this problem.
Can you provide sample project where you can see this behavior? Is java platform configured correctly? Alternatively you can try starting IDE with fresh userdir ( using --userdir c:\empty_dir switch) and see it the problem persists. To the second problem: has all classes in jar their .java counterparts in project? (e.g. there is no additional class added, such web services ... )
Created attachment 83968 [details] Test project that illustrates the problem
I have attached the test project I used when reporting this. The java platform is configured identically to the java platform I use for rc2. (and in rc2 it works fine). Running with a fresh userdir seems to have fixed the problem. I will try to clean my user dir and open all my projects again. For the second problem. Yes all classes have their java counterpart, there is no generated code, or other dependencies (except for java SE classes). I will try this again when I have cleaned my user dir and see if it is still a problem.
Cleaning the userdir solved both problems. Not sure how my userdir became corrupt but cleaning it and re-open all projects seems to have solved all the problems I had in this bug.
reopen - worksforme
worksforme - not fixed