Bug 9031

Summary: NPE in AbstractMethodDeclaration.compilationResult during search
Product: [Eclipse Project] JDT Reporter: Knut Radloff <knut_radloff>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Attachments:
Description Flags
NPE in AbstractMethodDeclaration.compilationResult none

Description Knut Radloff CLA 2002-02-04 10:13:29 EST
20020129

When I search for references in workspace to 
org.eclipse.jface.preference.PreferenceDialog.close() I get a 
NullPointerException in 
org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.compilationResul
t
I'm going to upload the workspace to walleye 
as /va2000/INCOMING/forKnut/<bugnumber>.zip
Comment 1 Knut Radloff CLA 2002-02-04 10:15:21 EST
Created attachment 297 [details]
NPE in AbstractMethodDeclaration.compilationResult
Comment 2 Jerome Lanneluc CLA 2002-02-07 12:26:23 EST
We were trying to report a warning during parsing. To achieve this, we were 
trying to get a compilation result from the reference context. Unfortunately, 
the scope of the reference context (a method declaration) is null until we 
start resolving.

Fixed by passing the compilation result to the nonExternalizedStringLiteral
(...) method.