Bug 117296

Summary: Stack overflow when using self-bounded generics
Product: [Tools] AspectJ Reporter: Mohan Radhakrishnan <javatech>
Component: CompilerAssignee: Andrew Clement <aclement>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: unspecified   
Target Milestone: 1.5.0RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mohan Radhakrishnan CLA 2005-11-21 06:11:15 EST
Hi,

This code is a form of "Curiously Recurring Template Pattern"

public class PropertySupport<T extends PropertySupport<T>> {

}
My AJDT project does not accept this though my JDK 5.0 ECLIPSE project does.

java.lang.StackOverflowError
at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromBinding(EclipseFactory.java:197)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromBinding(EclipseFactory.java:281)
at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromBinding(EclipseFactory.java:281)

Thanks,
Mohan
Comment 1 Matt Chapman CLA 2005-11-21 06:12:57 EST
Passing over to AspectJ
Comment 2 Matt Chapman CLA 2005-11-21 06:14:36 EST
*** Bug 117297 has been marked as a duplicate of this bug. ***
Comment 3 Andrew Clement CLA 2005-11-21 06:55:53 EST
must fix.
Comment 4 Andrew Clement CLA 2005-11-21 11:34:06 EST
taking a look right now...
Comment 5 Andrew Clement CLA 2005-11-22 11:42:30 EST
fix checked in for this. waiting on build.
Comment 6 Andrew Clement CLA 2005-11-23 03:45:41 EST
fix available in latest dev build of AJ.