Bug 117296 - Stack overflow when using self-bounded generics
Summary: Stack overflow when using self-bounded generics
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: 1.5.0RC1   Edit
Assignee: Andrew Clement CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 117297 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-21 06:11 EST by Mohan Radhakrishnan CLA
Modified: 2005-11-23 03:45 EST (History)
0 users

See Also:


Attachments

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