Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] java.lang.StackOverflowError at org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:292)

Hi,

I'm using AspectJ 1.5.3 using LTW and writing *most* of my aspects code style. I get the following stack trace when running a test case from ant:

[junit] java.lang.StackOverflowError
    [junit]     at java.util.WeakHashMap.expungeStaleEntries(WeakHashMap.java:269)
    [junit]     at java.util.WeakHashMap.getTable(WeakHashMap.java:297)
    [junit]     at java.util.WeakHashMap.get(WeakHashMap.java:341)
    [junit]     at org.aspectj.weaver.World$TypeMap.get(World.java:967)
    [junit]     at org.aspectj.weaver.World.resolve(World.java:250)
    [junit]     at org.aspectj.weaver.World.resolve(World.java:191)
    [junit]     at org.aspectj.weaver.UnresolvedType.resolve(UnresolvedType.java:662)
    [junit]     at org.aspectj.weaver.ReferenceType.getRawType(ReferenceType.java:550)
    [junit]     at org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:292)
    [junit]     at org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:276)
    [junit]     at org.aspectj.weaver.ReferenceType.isAssignableFrom(ReferenceType.java:292)
.....

Strangely, I don't get the error if running my test cases from inside Eclipse. If I'm not wrong, eclipse uses it's own compiler while when running from ant I'm compiling with Sun's compiler (1.5.0_09).

I don't really know what else to do... I suspect the issue is while handling generics, but not much else. I'm willing to provide any additional information to help me diagnose the problem.

I'm attaching the generated ajcore files.

thanks a lot,

saludos

--
santiago aguiar
netlabs
Palmar 2548
Montevideo, Uruguay
Tel. +(598 2) 707 7687
Fax. +(598 2) 709 4866
http://www.netlabs.com.uy

Attachment: ajcore.zip
Description: Zip archive

begin:vcard
fn:Santiago Aguiar
n:Aguiar;Santiago
org:;Desarrollo
adr:;;Palmar 2548;Montevideo;Montevideo;11600;Uruguay
email;internet:saguiar@xxxxxxxxxxxxxx
title:NetLabs
tel;work:+598 2 7077687
tel;fax:+598 2 7094866
tel;home:+598 2 7075079
tel;cell:+598 99 579739
x-mozilla-html:TRUE
url:http://www.netlabs.com.uy/
version:2.1
end:vcard


Back to the top