Bug 335751

Summary: [1.7][compiler] Cycle inheritance in type arguments is not detected
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, satyam.kandula
Version: 3.7Flags: satyam.kandula: review+
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch under test none

Description Olivier Thomann CLA 2011-01-28 21:48:07 EST
Using HEAD, bug 209149 fixed the forward reference case with compliance 1.7, but cycle should still be reported as an error.

public class X<A extends B, B extends A> {
}

This compiles fine with compliance 1.7.
Comment 1 Olivier Thomann CLA 2011-01-28 21:48:43 EST
Srikanth, please investigate.
Comment 2 Srikanth Sankaran CLA 2011-02-14 05:13:36 EST
Created attachment 188887 [details]
Patch under test

See that this patch also fixes bug 334121 and includes a regression
test for it. So I'll be closing the latter as a duplicate.
Comment 3 Srikanth Sankaran CLA 2011-02-14 05:15:19 EST
*** Bug 334121 has been marked as a duplicate of this bug. ***
Comment 4 Srikanth Sankaran CLA 2011-02-14 09:13:11 EST
Passes all tests, Satyam please review. TIA.
Comment 5 Satyam Kandula CLA 2011-02-15 00:25:45 EST
The patch looks good. +1 for it.
Comment 6 Srikanth Sankaran CLA 2011-02-15 00:36:01 EST
Released in HEAD for 3.7 M6
Comment 7 Ayushman Jain CLA 2011-03-07 11:35:14 EST
Verified for 3.7M6 using build I20110301-1537.