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 52174 - Code completion partially broken for JDK 1.2
Summary: Code completion partially broken for JDK 1.2
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-08 00:54 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log excerpt (79.11 KB, text/plain)
2004-12-08 00:55 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-12-08 00:54:36 UTC
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).
Comment 1 Jesse Glick 2004-12-08 00:55:15 UTC
Created attachment 19191 [details]
Log excerpt
Comment 2 Jesse Glick 2004-12-08 01:01:39 UTC
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.)
Comment 3 Jan Becicka 2005-01-31 10:57:59 UTC
See issue 52539 (similar exceptions)
Comment 4 Jan Becicka 2005-02-17 07:04:47 UTC
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
Comment 5 Quality Engineering 2007-09-20 09:45:38 UTC
Reorganization of java component