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.
041207 custom, JDK 1.6.0. I have installed JDK 1.2.2_017 and added it as a Java Platform, including src.jar. If I make a new j2seproject using this platform, I can compile and run classes like this fine: package usesjdk12; public class Main { public static void main(String[] args) throws Exception { java.lang.reflect.Method m = Main.class.getMethods()[0]; System.out.println("name=" + m.getName()); } } However code completion does not completely work. In particular, it will not complete the java.lang.reflect.* package or any classes in it. (java.lang.ref *does* work.) However when the variable 'm' above is declared as a Method, then code completion on e.g. m.getName() does work - it is just the class name which cannot be completed. Also there is no code completion on "System", for example. Yet there is completion on "System.". Now I shut down the IDE, delete my var/cache/ dir, and restart. Code completion seems to be working fine for a while. But then I switch to another project using JDK 1.2 and try to use code completion; it does not work, and I get exceptions (attached).
Created attachment 19191 [details] Log excerpt
Rebooting again with a clean cache seems to fix things. Looks like perhaps changing the bootclasspath of a project corrupts some database? (Besides changing the platform for the test j2seproject immediately after creation, I also edited the project.xml for a freeform project - /space/src/ant - to use <classpath mode="boot">/space/jdk1.2.2_017/jre/rt.jar</classpath>, first for src/main, then for src/testcases as well.)
See issue 52539 (similar exceptions)
Jesse, I can use JDK 1.2.2_017 as a Java Platform without any problems. No Exceptions. Code completion works correctly. If you are still able to reproduce this bug with latest build, please reopen this issue. Thanks
Reorganization of java component