Bug 432608 - Compiler stackoverflows in ReferenceType.setDelegate
Summary: Compiler stackoverflows in ReferenceType.setDelegate
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.0.M1   Edit
Hardware: PC Windows 7
: P3 blocker (vote)
Target Milestone: 1.8.0   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-11 06:42 EDT by David Delbecq CLA
Modified: 2014-04-14 11:45 EDT (History)
1 user (show)

See Also:


Attachments
aspecj output (30.91 KB, text/plain)
2014-04-11 06:42 EDT, David Delbecq CLA
no flags Details
aspectj core output (182.24 KB, text/plain)
2014-04-11 06:43 EDT, David Delbecq CLA
no flags Details
The java class that does not compile (3.72 KB, text/plain)
2014-04-11 06:45 EDT, David Delbecq CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Delbecq CLA 2014-04-11 06:42:10 EDT
Created attachment 241883 [details]
aspecj output

When trying 1.8.0.M1 with maven, i get the attached output, basically a stackoverflow that prevents compilation.

I bet the problem is related to this message:
java.lang.RuntimeException: PR341926 diagnostics: Incorrect setup for a generic type, raw type should not point to raw: be.meteo.front.model.AbstractControlPoint

Which point to a class defined as
public abstract class AbstractControlPoint<CP extends AbstractControlPoint<CP, N>, N extends AbstractCurve<CP, N>>


This class did not pose problem compiling with java 7 and previous aspectj versions. It's only a problem with aspectj 1.8.0M1 running under JDK 8


So for now my project is stuck to java 7 and can't use lambdas or stream apis.
Comment 1 David Delbecq CLA 2014-04-11 06:43:27 EDT
Created attachment 241884 [details]
aspectj core output

Added aspectj core output to help debug.
Comment 2 David Delbecq CLA 2014-04-11 06:45:27 EDT
Created attachment 241885 [details]
The java class that does not compile
Comment 3 Andrew Clement CLA 2014-04-11 18:25:47 EDT
Can you try 1.8.0.RC1 or 1.8.0.RC2?

I was trying to recreate the problem with the code you attached but it may depend on the generic structure of all those types referenced from this snippet. I tried stubbing them out but now I'm at a point where it just compiles.

It may not be fixed in RC2 though, if it is not is there any way to share more of the failing system with me so I could reproduce it?
Comment 4 David Delbecq CLA 2014-04-14 02:58:00 EDT
Hello,

I tried aspectjtools / aspectjrt / aspectjweaver available at

http://maven.springframework.org/milestone

in version 1.8.0.RC2 and it compiles without troubles or even warning messages. 

So this solves my issue :)
Comment 5 Andrew Clement CLA 2014-04-14 11:45:25 EDT
Thanks for letting me know :)