Bug 28752

Summary: J Search resports non-existent Java element
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2002-12-20 10:55:19 EST
It seems that for some matches (most likely binary fields)  a non-existent Java
element is returned as enclosingElement in accept(...).

Test case: Import Team UI plug-in  into a fresh workspace, then search for
SyncCompareInput

You'll see ugly icons (or a ? once bug 28369 is fixed) in the Search view.

Here's the debugger value of such an enclosingElement:
listener (not open) [in SyncCompareInput$2 [in SyncCompareInput$2.class [in
org.eclipse.team.internal.ui.sync [in teamui.jar [in org.eclipse.team.ui]]]]]
Comment 1 Jerome Lanneluc CLA 2003-01-14 04:55:38 EST
When creating a type handle, now ensures it is a top level type.
Comment 2 David Audel CLA 2003-02-11 11:58:03 EST
Verified.