Bug 262208 - [1.5][compiler]Incorrect @Override and name clash errors
Summary: [1.5][compiler]Incorrect @Override and name clash errors
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.5 M5   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 262209
Blocks:
  Show dependency tree
 
Reported: 2009-01-23 12:25 EST by Kent Johnson CLA
Modified: 2009-01-27 07:01 EST (History)
2 users (show)

See Also:


Attachments
Proposed patch and testcase (6.82 KB, patch)
2009-01-23 12:34 EST, Kent Johnson CLA
no flags Details | Diff
Proposed patch and testcase for 3.4.2 (6.38 KB, patch)
2009-01-23 14:57 EST, Kent Johnson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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