Bug 3433 - search: missing field occurrecnces (1GKZ8J6)
Summary: search: missing field occurrecnces (1GKZ8J6)
Status: CLOSED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:55 EDT by Jerome Lanneluc CLA
Modified: 2010-12-13 04:31 EST (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 Jerome Lanneluc CLA 2001-10-10 22:55:02 EDT
AK (10/2/2001 6:11:32 PM)
	package p;
class A{
	protected int g;
	void m(){
		g++;
	}
}
class B extends A{
	void m(){
		g= 0;
	}
}

search for occurrences of A.g - none are found

NOTES:

JBL (10/3/2001 7:34:42 PM)
	I cannot reproduce in 202a. I find 3 occurences of A.g.
	Do you have more details?

AK (10/4/2001 12:40:22 PM)
	(i tried the latest STABLE jcore - not bare 202a)
	1. in a new workspace create a new project
	2. create a package p
	3. create a class A and paste the code
	4. search for pretty much anything and it'll fail: types, fields, methods (declarations, references etc.)
	after restarting, searching for occurrences of A.g finds 2 matches

JBL (10/4/2001 12:52:56 PM)
	202a and STABLE have a known problem: a ClassCastException occurs when indexing if you have proj=src=bin.
	That's why search fails for anything. This is fixed in SNZ's HEAD stream.
	When restarting, the indexes are recomputed and the ClassCastException doesn't occur. 
	The fact that search missed the match in B.m() has also been fixed in SNZ's HEAD stream.
Comment 1 Jerome Lanneluc CLA 2001-10-11 08:45:57 EDT
Ok to close?
Comment 2 Adam Kiezun CLA 2001-10-11 08:58:04 EDT
yes
Comment 3 Jerome Lanneluc CLA 2001-10-11 09:25:23 EDT
Added JavaSearchTests.testFieldReference().
Closing
Comment 4 DJ Houghton CLA 2001-10-29 17:13:49 EST
PRODUCT VERSION:
	202a
	
Comment 5 AlexZhang CLA 2010-12-13 04:31:55 EST
fsafsf