Bug 8900 - Search causing internal error
Summary: Search causing internal error
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows NT
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-31 18:37 EST by Lynne Kues CLA
Modified: 2002-02-01 13:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2002-01-31 18:37:10 EST
Build 20020129

1. Search for declarations of a java method.
2. Select one of the results and asked for references.  Internal error.  Log 
below.
3. Rebuild All, try again, still get internal error.

I zipped up the workspace if you want me to upload it somewhere.  Steps to 
recreate in the workspace as follows:

1. Open WS.  Search --> Java --> method --> requestActivation --> declarations
2. Select the first match in the Search List --> References --> Workspace.  


Log: Thu Jan 31 18:32:27 EST 2002
4 org.eclipse.jdt.ui 1 Internal Error
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.buildBindings(MatchLo
cator.java:196)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.accept(MatchLocator.j
ava:116)
	at 
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvi
ronment.java:97)
	at 
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.j
ava:108)
	at 
org.eclipse.jdt.internal.compiler.lookup.Scope.findType(Scope.java:612)
	at 
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java(Compi
led Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.jav
a:777)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope
.java:564)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassSc
ope.java:662)
	at 
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarc
hy(CompilationUnitScope.java:210)
	at 
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(
LookupEnvironment.java:212)
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector.buildBindi
ngs(SuperTypeNamesCollector.java:179)
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector.collect(Su
perTypeNamesCollector.java:208)
	at 
org.eclipse.jdt.internal.core.search.matching.MethodReferencePattern.initializeP
olymorphicSearch(MethodReferencePattern.java:104)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLo
cator.java:418)
	at 
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:369)
	at 
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:315)
	at 
org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute(JavaSearchOperati
on.java:79)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.j
ava:64)
	at 
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1232)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav
a:78)
	at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.jav
a:98)
Log: Thu Jan 31 18:34:15 EST 2002
4 org.eclipse.jdt.ui 1 Internal Error
java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.buildBindings(MatchLo
cator.java:196)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.accept(MatchLocator.j
ava:116)
	at 
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.j
ava(Compiled Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.j
ava(Compiled Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.Scope.findType(Scope.java(Compiled 
Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java(Compi
led Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.jav
a:777)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope
.java:564)
	at 
org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassSc
ope.java:662)
	at 
org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarc
hy(CompilationUnitScope.java:210)
	at 
org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(
LookupEnvironment.java:212)
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector.buildBindi
ngs(SuperTypeNamesCollector.java:179)
	at 
org.eclipse.jdt.internal.core.search.matching.SuperTypeNamesCollector.collect(Su
perTypeNamesCollector.java:208)
	at 
org.eclipse.jdt.internal.core.search.matching.MethodReferencePattern.initializeP
olymorphicSearch(MethodReferencePattern.java:104)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLo
cator.java:418)
	at 
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:369)
	at 
org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:315)
	at 
org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute(JavaSearchOperati
on.java:79)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.j
ava:64)
	at 
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1232)
	at 
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.jav
a:78)
	at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.jav
a:98)
Comment 1 Erich Gamma CLA 2002-01-31 18:40:37 EST
the NPE happens in JDT core.
Comment 2 Jerome Lanneluc CLA 2002-02-01 13:13:31 EST
Moved the initialization of the matching openables set before initializing the 
polymorphic search as this can cause some potential matches to be found.

Verified this is fixed with Lynne's workspace.