Bug 209149 - [1.7][compiler] 1.7 compliance allows type params to be declared in any order
Summary: [1.7][compiler] 1.7 compliance allows type params to be declared in any order
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-08 04:59 EST by Philipe Mulet CLA
Modified: 2008-04-28 11:12 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch with testcase (2.69 KB, patch)
2008-04-18 12:13 EDT, 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 Philipe Mulet CLA 2007-11-08 04:59:49 EST
The following program should compile clean:

class MyClass1<E, D extends E> {}
class MyClass2<E extends D, D> {}

Also see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6192945
Comment 1 Philipe Mulet CLA 2007-11-08 05:00:22 EST
Would make this behavior compliance level dependent.
Comment 2 Kent Johnson CLA 2008-04-17 11:27:41 EDT
See bug 222326
Comment 3 Kent Johnson CLA 2008-04-18 12:13:53 EDT
Created attachment 96617 [details]
Proposed patch with testcase
Comment 4 Kent Johnson CLA 2008-04-18 13:10:10 EDT
Released for 3.4M7
Comment 5 David Audel CLA 2008-04-28 11:12:13 EDT
Verified for 3.4M7 using I20080427-2000