Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] java.lang.StackOverflowError

 
Hi Ramnivas,

Thanks for the response. I tried it on the downloaded code, and it did
work, so it was obviously a problem with my code, which I've just
tracked down. A toString() method was calling other methods in the class
(getters instead of just direct field access), which seems to have been
the problem.

I got it working first by further restricting with "&&
!cflow(this(TracerAspect))", but later on was able to get a stack trace
with the original error that showed the offending class, and after
replacing the call to the getter with a direct field access, it works
great.

BTW, your book is great!

Thanks,

Calvin

-----Original Message-----
From: aspectj-users-admin@xxxxxxxxxxx
[mailto:aspectj-users-admin@xxxxxxxxxxx] On Behalf Of Ramnivas Laddad
Sent: Thursday, May 27, 2004 7:28 PM
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] java.lang.StackOverflowError

Hello Calvin,

I just tried to run example in section 5.5.1 with AspectJ 1.2 and it
seems to work fine. 

Can you provide the other source files (unless you are trying with the
shopping cart example in the chapter) so that I can reproduce the
problem?

Thanks.

-Ramnivas






Back to the top