Bug 3615 - search for method declarations: private methods are never overloaded (1GCUF7U)
Summary: search for method declarations: private methods are never overloaded (1GCUF7U)
Status: RESOLVED DUPLICATE of bug 39700
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:58 EDT by Adam Kiezun CLA
Modified: 2003-07-07 10:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2001-10-10 22:58:02 EDT
AK (4/27/01 3:19:17 PM)
	1. create this:
	 package p;
	public class A {
		private void m(){}
	}
	class B extends A{
		void m(){}
	}
	2. search for declarations of A::m
	two results are found

	technically speaking private methods are never overloaded
	so B::m is a totally different method. just happens to have the same 
signature, throws clause and return type.

NOTES:

PM (4/27/2001 6:50:39 PM)
	Agreed, but this is likely to be causing grief at some point, so we 
might want to be able to show them (same applies
	to package default methods).

AK (4/30/01 2:05:17 PM)
	maybe the ui should filter the other matches out (?)
	/but then, there'd have to be some special ui code for this case/
	what do you think? 

AK (4/30/01 3:33:35 PM)
	there seems to be no clear policy here
	see 1GCZZS1: ITPJCORE:WINNT - inconsistent search for method 
declarations
Comment 1 DJ Houghton CLA 2001-10-24 07:14:17 EDT
PRODUCT VERSION:
	java ui 048

Comment 2 Adam Kiezun CLA 2002-02-04 11:48:55 EST
remind
Comment 3 Adam Kiezun CLA 2003-07-07 10:38:54 EDT
reopen to close as dup
Comment 4 Adam Kiezun CLA 2003-07-07 10:41:21 EDT

*** This bug has been marked as a duplicate of 39700 ***