Bug 9492 - Walkback while searching
Summary: Walkback while searching
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P1 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-12 16:11 EST by Peter Burka CLA
Modified: 2002-02-14 07:09 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 Peter Burka CLA 2002-02-12 16:11:55 EST
I tried to search for all references to Action.setImageDescriptor() in the 
workspace.  The search appeared to complete, but then it showed an error 
message.  After pressing OK, I got at least partial search results in the 
search view.

I tried the search again with the same results.

The following error was logged:

java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
	at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getMethods
(SourceTypeBinding.java(Compiled Code))
	at 
org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.getExactConstructor
(SourceTypeBinding.java:353)
	at org.eclipse.jdt.internal.compiler.lookup.BlockScope.getConstructor
(BlockScope.java:923)
	at org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall.resolve
(ExplicitConstructorCall.java:243)
	at 
org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.checkName
(ConstructorDeclaration.java:126)
	at 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve
(AbstractMethodDeclaration.java:258)
	at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.resolve
(ConstructorDeclaration.java:322)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:726)
	at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(TypeDeclaration.java:754)
	at 
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve
(CompilationUnitDeclaration.java:188)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenable.locateMatchesInCo
mpilationUnit(MatchingOpenable.java:282)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenable.locateMatches
(MatchingOpenable.java:144)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:1092)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:426)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:344)
	at org.eclipse.jdt.core.search.SearchEngine.search
(SearchEngine.java:290)
	at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute
(JavaSearchOperation.java:79)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run
(WorkspaceModifyOperation.java:64)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1232)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)

(Build 20020125)
Comment 1 Jerome Lanneluc CLA 2002-02-12 17:11:16 EST
Peter, do you still have the workspace that causes the problem? If you do, 
could you please zip it and send it to me (or put it on walleye if it is too 
big)?
Comment 2 Jerome Lanneluc CLA 2002-02-14 07:09:47 EST
Binding resolution on SourceTypeBinding has been made more robust so that if an 
AbortCompilation is thrown while resolving method or field bindings, the 
SourceTypeBinding is not left with null bindings.