Bug 18418 - search: searchDeclarationsOfReferencedTypes reports import declarations
Summary: search: searchDeclarationsOfReferencedTypes reports import declarations
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 18456 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-31 04:52 EDT by Adam Kiezun CLA
Modified: 2002-06-03 12:50 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-05-31 04:52:17 EDT
20020530
this behavior is new - was different in F1

-----A.java-----
package p1;
import p2.C;
public class A{
	C c;
	p2.C p2c;
}

-----B.java-----
package p1;
import p2.C;
public class B{
	C c;
	p2.C m(C C, A A){
		return C;
	}	
}

---C.java----
package p2;
import p1.A;
import p1.*;
import p1.B;
public class C{
	A a;
	p1.A p1a;
	B b;
	p1.B p1B;
}

the import declaration in A.java is returned by (getEnclosingElement on the 
result)

SearchEngine::searchDeclarationsOfReferencedTypes()
Comment 1 Jerome Lanneluc CLA 2002-05-31 06:16:31 EDT
Right, introduced bug when fixing bug 17906 (forgot to override 
matchReportImportRef in DeclarationOfReferencedTypesPattern).

Fixed.
Comment 2 Adam Kiezun CLA 2002-05-31 12:01:47 EDT
*** Bug 18456 has been marked as a duplicate of this bug. ***
Comment 3 Jerome Lanneluc CLA 2002-06-03 12:50:39 EDT
Verified (see JavaSearchTests.testDeclarationOfReferencedTypes5())