Bug 334121

Summary: [1.7][compiler] Stackoverflow error if compiled in 1.7 compliance mode
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jarthana
Version: 3.7   
Target Milestone: 3.7 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Olivier Thomann CLA 2011-01-12 10:26:36 EST
The following code compiles fine in 1.7:

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

but reports an error in 1.6.

This is fine according to bug 209149.

Now the problem is that the fix for this bug is causing a StackoverFlow error with this code:

class X<E extends E> {}

It should report a cycle.
Comment 1 Olivier Thomann CLA 2011-01-12 10:26:53 EST
Srikanth, please investigate.
Comment 2 Srikanth Sankaran CLA 2011-02-14 05:15:19 EST
The test case has been added to bug 335751's patch.
Closing as duplicate.

*** This bug has been marked as a duplicate of bug 335751 ***
Comment 3 Jay Arthanareeswaran CLA 2011-03-07 07:05:43 EST
Verified for 3.7M6 using build I20110301-1537.