Bug 334121 - [1.7][compiler] Stackoverflow error if compiled in 1.7 compliance mode
Summary: [1.7][compiler] Stackoverflow error if compiled in 1.7 compliance mode
Status: VERIFIED DUPLICATE of bug 335751
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-12 10:26 EST by Olivier Thomann CLA
Modified: 2011-03-07 07:05 EST (History)
1 user (show)

See Also:


Attachments

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