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 88752 - com.sun.tools.javac.util.Abort from JavaCompletionProvider$JavaCompletionQuery.getCompletionEnvironment
Summary: com.sun.tools.javac.util.Abort from JavaCompletionProvider$JavaCompletionQuer...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-11-06 23:13 UTC by Jesse Glick
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
St (7.32 KB, application/octet-stream)
2006-11-06 23:18 UTC, Jesse Glick
Details
More badness (5.20 KB, text/plain)
2006-11-06 23:42 UTC, Jesse Glick
Details
Log file (37.31 KB, text/plain)
2006-11-21 22:30 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2006-11-06 23:13:45 UTC
Dev 061106. I have a Maven project open (Hudson). Something is wrong in its
configuration and so it shows error notations in the editor, but I try to use CC
anyway. No completions are offered on a JRE method, which is not so unexpected,
but this exception is also thrown. The editor should never throw an uncaught
exception when attempting CC.
Comment 1 Jesse Glick 2006-11-06 23:18:20 UTC
Created attachment 35817 [details]
St
Comment 2 Jesse Glick 2006-11-06 23:18:48 UTC
Sorry, hit Enter too early, that was of course "Stack traces".
Comment 3 Jesse Glick 2006-11-06 23:42:06 UTC
Created attachment 35818 [details]
More badness
Comment 4 Jesse Glick 2006-11-06 23:53:24 UTC
Seems to not be a problem of the project type after all.

1. Run dev build on fresh userdir. I used JDK 6.

2. Checkout Hudson trunk sources. (hudson.dev.java.net)

3. Make new Java Project with Existing Sources.

4. Put project dir wherever.

5. For sources, select ${hudson-co}/main/core/src/main/java/ as the source root.

6. Wait for CP scanning to complete.

7. Open hudson.model.Build.

8. Editor will show errors. Look at error tooltip on class definition:

cannot access hudson.model.Run
bad class file: null
undeclared type variable: RunT
Please remove or make sure it appears in the correct subdirectory of the classpath.

9. Try code completion from anywhere; you will get some NPEs from
MemberEnter.getMethodEnv.

Perhaps the class declaration

public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,RunT>>

is confusing javac in the IDE?
Comment 5 Jesse Glick 2006-11-06 23:57:31 UTC
Does not occur in 6.0M4; there are expected error markings in various classes
corresponding to missing classpath entries, but some code completion works at least.
Comment 6 Jesse Glick 2006-11-20 17:23:00 UTC
Any evaluation? Easily (for me) reproduced with or without Maven. Makes it
impractical to use the IDE on this project.
Comment 7 Dusan Balek 2006-11-21 16:12:43 UTC
Fixed.

Checking in SymbolClassReader.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/SymbolClassReader.java,v
 <--  SymbolClassReader.java
new revision: 1.3; previous revision: 1.2
done
Comment 8 Jesse Glick 2006-11-21 22:30:05 UTC
Not fixed. Still cannot use the Hudson project, even after clearing out
$userdir/var/cache. Same problems as before.
Comment 9 Jesse Glick 2006-11-21 22:30:53 UTC
Created attachment 36187 [details]
Log file
Comment 10 Dusan Balek 2006-11-22 11:08:24 UTC
OOPS! Second attempt.

Checking in SymbolClassReader.java;
/cvs/java/source/src/org/netbeans/modules/java/source/usages/SymbolClassReader.java,v
 <--  SymbolClassReader.java
new revision: 1.4; previous revision: 1.3
done