Bug 262208

Summary: [1.5][compiler]Incorrect @Override and name clash errors
Product: [Eclipse Project] JDT Reporter: Kent Johnson <kent_johnson>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_audel, philippe_mulet
Version: 3.5   
Target Milestone: 3.5 M5   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 262209    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch and testcase
none
Proposed patch and testcase for 3.4.2 none

Description Kent Johnson CLA 2009-01-23 12:25:36 EST
class XX {
	<T extends C, S extends G<T>> void a(S gC) {}
	<T extends C, S extends G<T>> void b(T c) {}
	<T extends C> void c(G<T> gC) {}
	<T extends C, S extends G<T>> void d(S gC) {}
}

class X extends XX {
	@Override void a(G g) {} // NO errors
	@Override void b(C c) {} // NO errors
	@Override void c(G g) {} // NO errors

	//  name clash + override error should appear here
	@Override <T extends C, S extends G<C>> void d(S gc) {}
}

class C {}
class G<T2> {}
Comment 1 Kent Johnson CLA 2009-01-23 12:34:23 EST
Created attachment 123561 [details]
Proposed patch and testcase
Comment 2 Kent Johnson CLA 2009-01-23 12:50:48 EST
The patch requires the patch from bug 262209
Comment 3 Kent Johnson CLA 2009-01-23 14:53:19 EST
Fix and test released for 3.5M5
Comment 4 Kent Johnson CLA 2009-01-23 14:56:57 EST
Philippe - should we fix this for 3.4.2 ?
Comment 5 Kent Johnson CLA 2009-01-23 14:57:50 EST
Created attachment 123585 [details]
Proposed patch and testcase for 3.4.2
Comment 6 David Audel CLA 2009-01-27 07:01:48 EST
Verified for 3.5M5 using I20090126-1300